- Nov 20, 2020
- 431
- 665
LOL this is one of the most common techniques dude, why don't you want to do it? It's called a code cave: there's not enough space for the instructions you want to write so you replace them with a jump, add what you want, replace the instructions you don't want removed, and jump back. You can preserve the registers with pushad+popad (and their 64-bit equivalent)
i want to code cave just for some reason any jmp instruction that replace any call to unityAPI make the code flow go to shit and the game just dont really want to continue execution and get to weird memory exception
if you want to take a look check your mp its possible i'm just stupid sometimes x)RSP isn't just any register. It's the register that stores the stack pointer. Accessing something via it is akin to accessing a local variable (not currently in a register). It's probably setting a field in a data structure
Edit: i exprimed myself bad i use debugger to test forgot to reply to this one!
Last edited: