Search K
Appearance
Appearance
Other ways to support HackTricks:
retn
, because the return of the function in that case may call the address just pushed to the stack before calling it.VirtualAlloc
as this allocates space in memory where the program can write unpacked code. The "run to user code" or use F8 to get to value inside EAX after executing the function and "follow that address in dump". You never know if that is the region where the unpacked code is going to be saved. VirtualAlloc
with the value "40" as an argument means Read+Write+Execute (some code that needs execution is going to be copied here).memcopy
or Virtual
Alloc
. If you find yourself in a function that apparently only perform arithmetic operations and maybe some memcopy
, the recommendation is to try to find the end of the function (maybe a JMP or call to some register) or at least the call to the last function and run to then as the code isn't interesting.Other ways to support HackTricks: