Enabling dynamic analysis of Legacy Embedded Systems in full emulated environment
summary
Demonstrates a method to run stripped Windows CE 6 binaries inside QEMU by static reconstruction of relocation information, rebuilding PE base relocations (including import address table and code/data references) so drivers and kernel modules can be transplanted into a custom image. Uses eimgfs and Visual Studio to extract and rebuild firmware, scans instructions and data to collect relocation targets, and achieves about 98% accuracy; resulting emulation exposes kernel debug interfaces (KTL/WinDbg) and lets an HMI runtime run without the original hardware.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:36Outline
- 3:31Background of Windows CE6
- 4:12Difference between {NT, CE}
- 5:30Current methods to study CE6 firmware
- 7:03Round 1 Straight up & go to emulation
- 7:14CE6 Booting process
- 8:17CE6 Firmware format
- 9:14Our 1st failed approach
- 10:37What we learned
- 11:33CE6 Application loader
- 14:46Moving files from an image to another
- 15:37CE6 Memory Management
- 16:10CE6 & SDK: How it pack files
- 16:46What we want to do
- 18:13Our approach (code segment) • Locate all function epilouge and prolouge • Iterate through each function & check every instruction's operand - If its referencing somewhere in the binary, relocate the address
- 18:36Our approach (non-code segments)
- 20:18Demo: We run your device without your hardware
- 24:20With our method...
- 25:33Suggestions for vendors & Remarks
- 26:20Future work & Mentions
