I am building a C++ application for Windows that I’m going to hook with a DLL (in assembly code). But I’m having problems reverse engineering the console application I made.
I want to keep the function addresses in the same place, but they keep moving in memory each time I edit and rebuild the DLL.
Is there a way to keep them in the same place? And is there a way to keep the backing storage of a variable (e.g. int) in the same spot (memory address)?
You don’t need to hardcode addresses in assembly language.
You can just link with the DLL as usual.
If this doesn’t work for you, post code and exact problem description.