I need the hex value for: jmp short loc_0040149D
or in OllyDbg: jmp short Wpp.0040149D
Is there anyone that knows how to calculate those values, or has any url's
with info on opcodes and how to calculate to hex??
Thanks!!
The short jmp instruction is E9, but it is a relative instruction: the
operand is the offset to the destination. Thus, the actual instruction
will depend on the instruction's location.
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
Greetings
Markus
illu...@hotmail.com (Vinnie) wrote:I need the hex value for: jmp short loc_0040149D or in OllyDbg: jmp short Wpp.0040149D Is there anyone that knows how to calculate those values, or has any url's with info on opcodes and how to calculate to hex??The short jmp instruction is E9, but it is a relative instruction: the operand is the offset to the destination. Thus, the actual instruction will depend on the instruction's location.
40149d=9CD5h - if that's what you're asking. On the other hand you might be
asking how the instruction's bytes are calculated. If so, look at the
address of the next instruction after the call. Subtract that address from
009CD5h. That's what you'll see in the disassembly. It's bound to come out
as <=7F or >= -80, or else the instruction would have been refused at
assembly time.
rjb
--
If you received this through the miracle of modern technology then all
is well; if not then situation normal.
Chris father of :-) ( also at chrisj...@openlink.org )
www.users.zetnet.co.uk/barnes_firsnorton
00401472 . 84C0 TEST AL,AL
00401474 . 75 27 JNZ SHORT Wpp.0040149D
00401476 . B8 01000000 MOV EAX,1
0040147B . 50 PUSH EAX
0040147C . 6A 02 PUSH 2
0040147E . 8D55 F4 LEA EDX,DWORD PTR SS:[EBP-C]
00401481 . 52 PUSH EDX
00401482 . E8 1AA10800 CALL <JMP.&OWL501t.@TModuleVersionInfo@$>
00401487 . 83C4 08 ADD ESP,8
0040148A . 58 POP EAX
0040148B . 8B95 18FFFFFF MOV EDX,DWORD PTR SS:[EBP-E8]
00401491 . 64:8915 000000>MOV DWORD PTR FS:[0],EDX
00401498 . E9 5F010000 JMP Wpp.004015FC
0040149D > 66:C785 28FFFF>MOV WORD PTR SS:[EBP-D8],20
004014A6 . 8D4D F0 LEA ECX,DWORD PTR SS:[EBP-10]
Thx again!
:00401474 . 75 27 JNZ SHORT Wpp.0040149D
Change the 75 to EB.
jnz Address ;jump if zf not set
to
jmp short Address ;jump anyway
rjb
"Vinnie" <illu...@hotmail.com> wrote in message
news:d002f09d.04060...@posting.google.com...