Detouring a single instruction?
Ohai guise.
So... I have this single instruction.
I need to change what is written to ESI+0x154, the problem is ESI is dynamic. Now, I had a couple of ideas but obviously they didn't get me far otherwise I wouldn't be making this thread.
Any suggestions on how to retrieve the contents of ESI without having to set a breakpoint on it? As the title says, I was thinking about a detour, but it isn't a function so I wouldn't get how that would work. I was also thinking of just having an instruction to call my own function but I have no idea where to begin.
Bare with me, I'm terrible at memory hacking and just getting the basics. I didn't put this in the assembly/reversing section 'cause I want to code this in C++ and hoping some of you could lend me a hand.
So guise, any suggestions?
So... I have this single instruction.
Code:
mov [esi+0x154],edi
Any suggestions on how to retrieve the contents of ESI without having to set a breakpoint on it? As the title says, I was thinking about a detour, but it isn't a function so I wouldn't get how that would work. I was also thinking of just having an instruction to call my own function but I have no idea where to begin.
Bare with me, I'm terrible at memory hacking and just getting the basics. I didn't put this in the assembly/reversing section 'cause I want to code this in C++ and hoping some of you could lend me a hand.
So guise, any suggestions?


