wire / magic / pe

PE (Portable Executable) signature

A PE file begins with the DOS header 'MZ' (0x4D 0x5A) at offset 0, and the PE signature 'PE\x00\x00' (0x50 0x45 0x00 0x00) at the offset specified by e_lfanew (at offset 0x3C).

magic kind signature status de-facto verification verified tier B file-signature@1

aka: pe magic · .exe · .dll · .sys · .ocx

file signature

magic: 4D 5A @ offset 0

.exe.dll.sys.ocx application/x-msdownload

spec: PE/COFF (Microsoft)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/magic/pe or /magic/pe.json