Jump to content
Tuts 4 You

mams32 Read out


ragdog

Recommended Posts

Hi

I have a question to read out a offset from a jmp in masm32 without readproccessmemory

00415ED3 .- E9 28B1FEFF JMP 00401000

My routine find this offset 00415ED3 and i need for my wsprintf this offset 00401000

Can i make this with ReadFile?

Thanks,

Link to comment

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 + InstructionLength

In your case:

0x401000 = 0xFFFEB128 + 0x415ED3 + 5

Is this what you want? Not sure if I got you right.

Link to comment

Im not sure

My Goal is:

;00415ED3 .- E9 28B1FEFF JMP 00401000

;this offset 00415ED3 is in eax and i set the file pointer to this offset

invoke SetFilePointer, hInFile, eax, NULL, FILE_BEGIN

invoke ReadFile,hInFile,addr pBuffer,sizeof pBuffer,addr BytesRead,0

Now mus i found a solution for get this offset after this jmp " 00401000"

I need this offset for my next routine with wsprintf

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...