> For the complete documentation index, see [llms.txt](https://106-sam.gitbook.io/ejptv2-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://106-sam.gitbook.io/ejptv2-notes/crto/malware-essentials/malware/pe-portable-executable-file-structure.md).

# PE (Portable Executable) File Structure

The portable executable (PE) file format holds information about a program necessary for loading  it into memory. Both .exe and .dll files are PEs.

<figure><img src="https://lwfiles.mycourse.app/66e95234fe489daea7060790-public/5cffff248cd671eb063343d8ce1a8538.png" alt=""><figcaption></figcaption></figure>
