这个代码段应该使用从CreateFileA调用中检索到的地址来调用GetProcAddress。当然,在这个简单的例子中,我可以正常地调用它,但是我需要手动检索每个地址(甚至是LoadLibraryA和GetProcAddress,但是为了简洁起见,在这个例子中我没有)typedef FARPROC(*_GetProcAddress)(HMODULEDWORD, HANDLE);
int
push 0xDEADBEEF ; address of function namemov eax, 0xDEADBEEF ; address of GetProcAddresscall eax ; call GetProcAddresspush0call esi ; call the function returned by GetProcAddre