Setz dich mal mit den PE-Format auseinander.
Iczelion's PE Tutorial 1: Overview of PE File Format