The PE File Format
A very good article to understand on how the PE file format works B. Luevelsmeyer. Below are the contents included. This article was given to me by a member by the handle mindlessdeath from HackForums.
Placing an image file in an executable in C
If you ever wanted to place an image file into the executable or store any resources in it, this post will be able to help you. If you have previously read Builder & Stub | How to create your own builder and stub in C (using Resource), you will be able to understand this post easily. We are using the similar method by placing the image in the resource data. In this post, i am creating an application that extracts the image that has been placed in the resource data and place it in a file and execute the file.
Peering Inside the PE: A Tour of the Win32 Portable Executable File Format
Ever wondered how the Portable Executable (PE) file format works? Read up on what Matt Pietrek has to say about PE files. This article may be time consuming but if you are into researching the PE file format it is worthwhile. Some of the things covered include