I am hacking a game. There are a lot of functions that need to be rewritten. I want to rewrite them in C++, and then extract the machine codes from compiled file, and then inject them to the game. Anyone knows how to extracts machine codes from functions that are complied by C++ VS 2019? Easy way please!!
example:
int test (int arg){
return arg++;
}
Output assembly:
push rbp //55
mov rbp,rsp //48 8B EC
mov rax,[rbp+08] //48 8B 45 08
inc rax //48 FF C0
pop rbp //5D
I want to get these: 55 48 8B EC 48 8B 45 08 48 FF C0 5D