Daniel Roberson
  • Posts
  • About
  • Notes
  • Projects
  • Time
  • Posts
    About
    Notes
    Projects
    Time

Portable Executable

0001-01-01 pe windows

Windows executable files are defined by a specification known as the Portable Executable file format.

PE files typically have file extensions of exe, dll, sys, scr, …

https://learn.microsoft.com/en-us/windows/win32/debug/pe-format

The structure of a PE file is roughly as follows:


DOS Header


DOS Stub


NT Header NT Signature (0x50450000) File Header Optional Header


Data directories


Sections


0xRick’s blog has several articles with deep dives into the PE file format: https://0xrick.github.io/


Links to this note

  • armouringtheelf-grugq_scut2001
  • .text section
  • section
  • hiddenwasp-intezer2019
  • incidentresponse-luttgens2014
  • linenoise-phrack71-2024
  • malware development essentials-sektor7
  • metasploit shellcode grows up: encrypted and authenticated C shells-pace2019
  • PE entry redirection
  • VXadventure-amethystbasilisk2024
  • executable file
  • objcopy
  • borges2021
  • UPX
  • falseflags-kaspersky2017
  • PE Sections
  • binary file
  • compiler
  • Data Directory
  • DOS Header
  • Dynamic Link Library
  • Export Directory
  • File Header
  • imphash
  • Import Address Table
  • NT Header
  • Optional Header
  • PE Studio
  • PEBear
  • PPEE
  • relocation directory
  • sections (PE)
  • TLS directory
  • TLS directory injection
  • TLS initialization callback

Relevant Topics

Program Database

2024-08-05 pe windows

Dynamic Link Library

0001-01-01 pe windows

PEBear

0001-01-01 malwareanalysis reversing pe windows

DOS Header

0001-01-01 pe

DOS Stub

0001-01-01 pe


Recent Posts

Linux Persistence: Modular Software

2025-04-17 DFIR CTF persistence linux persistence apache asterisk

Linux Persistence: Web Shells

2025-04-16 DFIR persistence webshell linux persistence webshell apache nginx PHP

Linux Persistence: Rootkits

2025-04-15 DFIR persistence rootkit LKM linux persistence LKM rootkit LD_PRELOAD kprobe ftrace ld.so hooking

Linux Persistence: Processes

2025-04-11 DFIR persistence processes linux persistence processes

Defanging Linux LKM Rootkits With cleanup_module()

2025-04-05 Linux LKM rootkits EDR hooks incident response Linux LKM rootkit


Home

About

Notes

Projects

Time

© All rights reserved. Powered by Hugo and Erblog.