If I push a whole bunch of strings to the stack ,how do I acess them using esp? You all showed me how to do this with numbers, but how do I do it with strings?
Example:
push str1
push str2
push str3
How do I acess str1 using esp?
Example:
push str1
push str2
push str3
How do I acess str1 using esp?
Usually, you push the pointers to the strings, not the strings themselves.
push str1
push str2
push str3
mov eax, [esp+00h] ; eax = str3
mov ecx, [esp+04h] ; ecx = str2
mov edx, [esp+08h] ; edx = str1
Thanks :alright: