A PE parser written as an exercise to study the PE file structure.
It parses the following parts of PE32 and PE32+ files:
- DOS Header
- Rich Header
- NT Headers
- Data Directories (within the Optional Header)
- Section Headers
- Import Table
- Base Relocations Table
Read the blog post: https://0xrick.github.io/win-internals/pe8/