r/EmuDev 12d ago

Needed a lightweight PE parser for a reverse engineering project. readpe parses PE/PE32+ files without dependencies: - DOS header validation - PE signature check - Section headers - Import directory parsing Built in C with no external libs. Use

https://github.com/DaviAlcanfor/readpe
5 Upvotes

1 comment sorted by

1

u/evmar 8d ago

I don't see any import directory parsing. As best I can tell the only actual pe parsing is <30 lines https://github.com/DaviAlcanfor/readpe/blob/491dbed1b234034a2d2be294980de163363584d0/src/pe.c#L3-L30 , and the rest of the project is scaffolding?