ragdog Posted April 5, 2010 Posted April 5, 2010 HiI have a question to read out a offset from a jmp in masm32 without readproccessmemory00415ED3 .- E9 28B1FEFF JMP 00401000My routine find this offset 00415ED3 and i need for my wsprintf this offset 00401000Can i make this with ReadFile?Thanks,
metr0 Posted April 5, 2010 Posted April 5, 2010 So you got the VA (offsets are relative to file begin, +0) 415ED3. The instruction there is a jump and you want its destination VA? Formula would be the following:DestinationVA = InstructionOffset + InstructionVA + InstructionLengthIn your case:0x401000 = 0xFFFEB128 + 0x415ED3 + 5Is this what you want? Not sure if I got you right.
ragdog Posted April 5, 2010 Author Posted April 5, 2010 Im not sureMy Goal is:;00415ED3 .- E9 28B1FEFF JMP 00401000;this offset 00415ED3 is in eax and i set the file pointer to this offsetinvoke SetFilePointer, hInFile, eax, NULL, FILE_BEGINinvoke ReadFile,hInFile,addr pBuffer,sizeof pBuffer,addr BytesRead,0Now mus i found a solution for get this offset after this jmp " 00401000"I need this offset for my next routine with wsprintf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now