Working with the PE header structure
When you start to perform basic static analysis on a file, your first valuable source of information will be the PE header. The PE header is a structure that any executable Windows file follows.
It contains various information, such as supported systems, the memory layouts of sections that contain code and data (such as strings, images, and so on), and various metadata, helping the system load and execute a file properly.
In this section, we will explore the PE header structure and learn how to analyze a PE file and read its information.
Why PE?
The portable executable structure was able to solve multiple issues that appeared in previous structures, such as MZ for MS-DOS executables. It represents a complete design for any executable file. Some of the features of the PE structure are as follows:
- It separates the code and the data into sections, making it easy to manage the data separately from the program and link any string...