A Windows Kernel Driver Emulator base on Unicorn, Kernel Memory Dump and some of native environment
A Windows Kernel Driver Emulator base on Unicorn, Kernel Memory Dump and some of native environment
A hybrid semi-emulated, semi-native Windows kernel driver emulator designed for advanced rootkit and anti-cheat analysis, addressing the limitations of existing emulation solutions.
This project have been accept by CODEBLUE 2025
Bypassing Anti-Debugging: A Hybrid Real-Simulated Approach to Rootkit Analysis
KDemu's hybrid architecture consists of:
Emulate.cpp/hpp): kernel API implementations with intelligent hook managementLoadPE.cpp/hpp): Advanced PE parsing with kernel dump integration and driver overwritingClone the repository:
git clone
cd KDemuInstall dependencies via vcpkg:
vcpkg install unicorn capstoneBuild the project:
KDemu.sln in Visual StudioDownload Memory Dump: https://drive.google.com/file/d/1MDZ2s7RLGvypC0FDS6MOYgMglTyU6O9n/view?usp=sharing
Put it into the KDemu folder
mem.dmp) captured at a driver entry breakpointif you use another kernel dump, you have to change some of the parmenter like some of base addr..register..etc
Enable GDB server support by uncommenting the gdbServer() call in mainThread().
KDemu/
├── KDemu/
│ ├── KDemu.cpp # Main entry point
│ ├── Emulate.cpp/hpp # API emulation engine
│ ├── LoadPE.cpp/hpp # PE loader and memory management
│ ├── UnicornEmu.hpp # Unicorn engine wrapper
│ ├── Global.h # Common definitions
│ ├── NtType.hpp # Windows type definitions
│ ├── include/ # Third-party headers
│ └── lib/ # Static libraries
├── vcpkg.json # Package dependencies
└── KDemu.sln # Visual Studio solutionFor someone who want to analyze EAC, it will exit by triple fault because of unicorn can't handle divide-by-zero exception https://github.com/unicorn-engine/unicorn/issues/1883
So when cause error you should clone the unicorn object and restart to reset the fault value.
For Nexon Driver it will scan bootloader but our dump lack of bootloader's memory :(
ShallowFeather & HeroBurger
No open issues yet, or sync has not completed.