Cthulhu
February 20th, 2008, 06:15
Hi friends!
I'm reversing a free PeCompact static unpacker and I'm stuck with something I can't understand.
Here is the piece of code:
The value that is being moved to EAX is the Mem mapped packed file pointer that in my case is 0x01AF0000 ECX contains the entrypoint from the PeHeader which is 0x00001000.
My problem is the instruction at 0x004022E0. After MOV EDX,DWORD PTR DS:[ECX+EAX+1], EDX is equal to 0x00462CE0. Shouldn't it be 0x01AF1001?
Regards
Cthulhu
I'm reversing a free PeCompact static unpacker and I'm stuck with something I can't understand.
Here is the piece of code:
Code:
004022D0 <> . 83EC 20 SUB ESP,20
004022D3 . A1 407B4000 MOV EAX,DWORD PTR DS:[407B40]
004022D8 . 8B0D 687B4000 MOV ECX,DWORD PTR DS:[407B68]
004022DE . 53 PUSH EBX
004022DF . 55 PUSH EBP
004022E0 . 8B5401 01 MOV EDX,DWORD PTR DS:[ECX+EAX+1]
004022E4 . 8B2D C4794000 MOV EBP,DWORD PTR DS:[4079C4] ; unpecomp.00400000
004022EA . 2BD5 SUB EDX,EBP
The value that is being moved to EAX is the Mem mapped packed file pointer that in my case is 0x01AF0000 ECX contains the entrypoint from the PeHeader which is 0x00001000.
My problem is the instruction at 0x004022E0. After MOV EDX,DWORD PTR DS:[ECX+EAX+1], EDX is equal to 0x00462CE0. Shouldn't it be 0x01AF1001?
Regards
Cthulhu