Lost in the Loader: The Many Faces of the Windows PE File Format
summary
A formal modeling language encodes how loaders and tools parse PE headers, sections and mappings, then translates models to SMT/Z3 backend formulas to generate differential test cases and corner samples. Models cover Windows XP/7/10 kernel and user loaders, CFF, ClamAV, YARA and radare2; analysis finds five Windows-version parsing discrepancies, three ClamAV mismatches, a memory-mapping edge where section alignment < page size is handled differently, and a VirusTotal hunt (≈5M files) yields 467 hits including 301 alignment cases and 77 samples with 97 sections.
AI-written summary · about
