【发布时间】:2011-10-12 23:27:55
【问题描述】:
在 C++ 函数中,我有以下代码:
#if defined(WIN64)
const int offset = 0xd1;
#else
const int offset = 0x77;
#endif
unsigned char* p = &(((unsigned char*)pNetChannel)[offset+3]);
这样我可以通过调用 pNetChannel 的非公共函数从 struct(pNetChannel(initialised in other dll)) 中检索一个值(here:IpAddress)。偏移量是从反汇编的 DLL 收集的(不是我)。我的问题是,如何找到这个地址为“offset+3”的函数(反汇编dll中的asm函数)。我想在 asm 代码中找到返回 Ip 的函数!在哪个地址可以找到?
【问题讨论】:
标签: assembly reverse-engineering offset disassembly