Firmware extraction and unpacking scripts for Surface System Aggregator Module (SAM) firmware UEFI capsules.
- Extract UEFI capsule via:
This may generate multiple firmware image files.
./uefi-unwrap.py SurfaceSAM_1.108.139.bin SurfaceSAM_1.108.139.fwimg
- Extract (one) Firmware Image via:
./uefi-unwrap.py SurfaceSAM_1.108.139.0.fwimg SurfaceSAM_1.108.139.img
- Open image with ghidra, have fun...
Currently only works with firmware for newer devices, e.g. Surface Laptop 3 and Surface Pro X. Older models, e.g. the Surface Book 2, are currently unsupported.