我第一次使用 ASM,在我继续之前,我需要知道我在写这篇文章时是否理解了所有内容。当前代码如下所示:
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 只是我稍后会修补的虚拟地址。有什么问题吗?=)