just written a new tool which can be helpful with understanding / reading PE headers.
it runs under the commandline and takes the name / path of an executable as an argument.
output will be similar to this (only then in a nice column
QUOTE
PEviewer v1.0 - White Scorpion Security © 2005
***** http://www.white-scorpion.nl *****
Target file: cmd.exe
-----------------------------------------------------
Field Name: Offset: Value:
-----------------------------------------------------
PE signature: 0xD8 PE
Machine: 0xDC 0x14C
Number of sections: 0xDE 0x3
Timestamp: 0xE0 0x41107EBE
System table pointer: 0xE4 0x0
Number of symbols: 0xE8 0x0
Optional header size: 0xEC 0xE0
Chararteristics: 0xEE 0x10F
Magic: 0xF0 0x10B
Linker version: 0xF2 0xA07
Size of code: 0xF4 0x1F600
Initialized data size: 0xF8 0x3F600
Uninitial. data size: 0xFC 0x0
RVA of entry point: 0x100 0x5056
RVA base of code: 0x104 0x1000
RVA base of data: 0x108 0x1F000
Image base: 0x10C 0x4AD00000
Section alignment: 0x110 0x1000
File alignment: 0x114 0x200
OS version: 0x118 0x10005
Image version: 0x11C 0x10005
Subsystem version: 0x120 0x4
Image size: 0x128 0x61000 (397312 bytes)
Header size: 0x12C 0x400
Checksum: 0x130 0x62494
Sub system: 0x134 0x3
Dll characteristics: 0x136 0x8000
Size of stack reserve: 0x138 0x100000
Size of stack commit: 0x13C 0x100000
Size of heap reserve: 0x140 0x100000
Size of heap commit: 0x144 0x1000
Loader flag: 0x148 0x0
Nr of data directories: 0x14C 0x10
Expected entry point: 0x004AD05056 0x004AD05056
***** http://www.white-scorpion.nl *****
Target file: cmd.exe
-----------------------------------------------------
Field Name: Offset: Value:
-----------------------------------------------------
PE signature: 0xD8 PE
Machine: 0xDC 0x14C
Number of sections: 0xDE 0x3
Timestamp: 0xE0 0x41107EBE
System table pointer: 0xE4 0x0
Number of symbols: 0xE8 0x0
Optional header size: 0xEC 0xE0
Chararteristics: 0xEE 0x10F
Magic: 0xF0 0x10B
Linker version: 0xF2 0xA07
Size of code: 0xF4 0x1F600
Initialized data size: 0xF8 0x3F600
Uninitial. data size: 0xFC 0x0
RVA of entry point: 0x100 0x5056
RVA base of code: 0x104 0x1000
RVA base of data: 0x108 0x1F000
Image base: 0x10C 0x4AD00000
Section alignment: 0x110 0x1000
File alignment: 0x114 0x200
OS version: 0x118 0x10005
Image version: 0x11C 0x10005
Subsystem version: 0x120 0x4
Image size: 0x128 0x61000 (397312 bytes)
Header size: 0x12C 0x400
Checksum: 0x130 0x62494
Sub system: 0x134 0x3
Dll characteristics: 0x136 0x8000
Size of stack reserve: 0x138 0x100000
Size of stack commit: 0x13C 0x100000
Size of heap reserve: 0x140 0x100000
Size of heap commit: 0x144 0x1000
Loader flag: 0x148 0x0
Nr of data directories: 0x14C 0x10
Expected entry point: 0x004AD05056 0x004AD05056
you can download it from my site here.
Kind regards.
White Scorpion
