How can I get function offset? I found MexScript code, which returns function offset from compiled .dll library.
findloc OFFSET binary "\x10\x31\x00\x00\x00"
math OFFSET + 5
math OFFSET + 0xa0
goto OFFSET
get funcoff long
math funcoff - 0x10000000
print "Offset %funcoff|x%"
Offset is 0x0001a6a0 which is good. So what is \x10\x31\x00\x00\x00
? How does it work? How can I do this in C++?
User contributions licensed under CC BY-SA 3.0