I have some binary data which contains a bunch of functions and want to call one of it.
I know the signature of these functions along with the offset relative to the start of the file. Calling convention is the default one: __cdecl.
The file was already loaded into a memory page with executing permissions.
For example (A, B, C being some types)
void myFunction (A *arg1, B arg2, C arg3); // Signature
int myOffset = 0x42; // Offset
How can I specify that myOffset points to myFunction?
1 Answer