0
我有史以来第一次使用ASM,在我继续之前,我需要知道当我写这篇文章时是否理解了所有的东西。当前的代码如下所示:ASM:LoadLibrary&GetProcAddress
push 0xDEADBEEF ; address of library name
mov eax, 0xDEADBEEF ; address of LoadLibraryA
call eax ; call LoadLibraryA
mov esi, eax ; store returned address
push 0xDEADBEEF ; address of function name
push esi
mov eax, 0xDEADBEEF ; address of GetProcAddress
call eax ; call GetProcAddress
mov esi, eax ; store returned address
push 0
push 0
push 0
call esi ; call the function returned by GetProcAddress
0xDEADBEEF只是我稍后会修补的虚拟地址。有什么不对的吗? =)
您是否遇到特定问题? –
@Michael我只需要知道我写的代码是否能正常工作(在我实际编译它并修补虚拟地址之前) – thatoneguy