# PE File Headers and Sections

### Important PE Sections

* **.text** -- instructions for the CPU to execute
* **.rdata** -- imports & exports
* **.data** – global data
* **.rsrc** – strings, icons, images, menus

### Time Date Stamp

* Shows when this executable was compiled
* Older programs are more likely to be known to antivirus software
* But sometimes the date is wrong
  * All Delphi programs show June 19, 1992
  * Date can also be faked

### IMAGE\_SECTION\_HEADER

* Virtual Size – RAM
* Size of Raw Data – DISK
* For **.text** section, normally equal, or nearly equal
* Packed executables show Virtual Size much larger than Size of Raw Data for **.text** section

![](https://1094113337-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3hoduT4ByoNaznkzhG%2F-MF7ycU3cObu0jPquLCd%2F-MF7ztiRtpHQ8YOyFZ9o%2F4.png?alt=media\&token=38cb1ef7-8297-4d54-a8d0-de2693314f32)

### Resource Hacker

* Lets you browse the **.rsrc** section
* Strings, icons, and menus

![](https://1094113337-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3hoduT4ByoNaznkzhG%2F-MF7ycU3cObu0jPquLCd%2F-MF8-09zZ6RV5VxRvd_Q%2F5.png?alt=media\&token=3f08d58f-7037-41f9-882a-11bed10abb6e)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.zacheller.dev/exploit-dev-analysis/static-analysis/portable-executable-file-format-pe/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
