Slugsnack
March 9th, 2008, 07:08
Hi all 
I've been trying to do a somewhat long inline patch using OllyDbg and encountered a problem. I'm writing my own code just after the JMP thunk table and then patching a jump in the original app to it.
The end of the JMP thunk table is at 401146 and I start assembling at 40114C. I noticed that as soon as I pass 4011FB, ie. start assembling at 401200, OllyDbg no longer seems to recognise the instructions. If I try to copy to executable, it does it find all the way up to there then afterwards if any instructions are selected to be copied to executable, I get this error:
"Unable to locate data in executable file"
The entry point of the app is at 401000 and this code section is 1000 in size. Imports start on 402000 and end 1000 bytes later. I figured that I should be able to write from anywhere between 401000-402000.
I've set BPs on access on the instructions at and after 401200 and as far as I can tell, they are never accessed so I should be free to write to them.
I've already tried forum search and tried searching on google numerous times but wasn't able to turn up anything. My friend did suggest looking for some sort of plugin but I want to confirm whether this problem just happens with me as well.
The same friend says he has also had this issue in the past. Has anybody else encountered this problem or knows how to get rid of it ?

I've been trying to do a somewhat long inline patch using OllyDbg and encountered a problem. I'm writing my own code just after the JMP thunk table and then patching a jump in the original app to it.
The end of the JMP thunk table is at 401146 and I start assembling at 40114C. I noticed that as soon as I pass 4011FB, ie. start assembling at 401200, OllyDbg no longer seems to recognise the instructions. If I try to copy to executable, it does it find all the way up to there then afterwards if any instructions are selected to be copied to executable, I get this error:
"Unable to locate data in executable file"
The entry point of the app is at 401000 and this code section is 1000 in size. Imports start on 402000 and end 1000 bytes later. I figured that I should be able to write from anywhere between 401000-402000.
I've set BPs on access on the instructions at and after 401200 and as far as I can tell, they are never accessed so I should be free to write to them.
I've already tried forum search and tried searching on google numerous times but wasn't able to turn up anything. My friend did suggest looking for some sort of plugin but I want to confirm whether this problem just happens with me as well.
The same friend says he has also had this issue in the past. Has anybody else encountered this problem or knows how to get rid of it ?