News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Memory-mapped files: Reading beyond the border

Started by jj2007, June 01, 2011, 11:21:20 AM

Previous topic - Next topic

qWord

Quote from: FlySky on July 31, 2011, 02:45:09 PMThe file on the disk has:

At offset: 1D86049

02186049 9C                                            pushf
0218604A 50                                            push    eax
0218604B 51                                            push    ecx
0218604C 52                                            push    edx
0218604D 53                                            push    ebx
0218604E 54                                            push    esp
You got this information from a hex editor or from a debugger/disassembler?
FPU in a trice: SmplMath
It's that simple!

FlySky

Got it with IDA Pro loading the file from my disk.

qWord

The relative offsets of a loaded PE are not equal to the file offsets. If you want to read or write data in a PE's section, you must parse the file header: Microsoft PE and COFF Specification
FPU in a trice: SmplMath
It's that simple!