
rev-unicorn-debug
Debug and emulate specific code fragments or functions using the Unicorn engine
by p4nda0sFree
Description
The rev-unicorn-debug skill helps an agent emulate and debug specific code fragments or functions with the Unicorn engine, rather than running a whole program. Its core approach is to load the file as raw bytes into Unicorn memory instead of parsing ELF, PE or Mach-O headers, and to map only the segments needed if raw loading fails. The agent reads the target function first and identifies its external dependencies, such as JNI calls, syscalls, libc functions or imports. It then hooks those by address and simulates their responses in Python. Unicorn's callbacks serve tracing, error recovery and environment simulation, and when emulation crashes the agent uses the callback information to map missing memory, hook unhandled calls or fix register state. To keep output small, the skill prefers block-level tracing and enables instruction tracing only on small ranges, using counters and summaries. It is for reverse engineers who want to run one function in isolation. The skill is listed on skills.sh under p4nda0s/reverse-skills, and the source is on GitHub in the same repository.…
Highlights
- Emulates single functions or code fragments with Unicorn
- Loads raw bytes instead of parsing binary headers
- Simulates JNI, syscall and library dependencies
- Block-level tracing with small instruction ranges
- Iterative fixes from crash callback information
Ratings & Reviews
No ratings yet
Be the first to rate rev-unicorn-debug.
People also visit

reverse-engineer-anything
Reverse engineer native, managed, Electron/JavaScript, packaged, firmware
rev-unicorn-debug FAQ
What does rev-unicorn-debug do?
It emulates specific code fragments or functions with Unicorn and simulates the external calls they depend on.
Does it load whole binaries?
No. It loads the file as raw bytes first and maps only the segments the target needs, if raw loading fails.
How is tracing handled?
It prefers block-level tracing and uses instruction tracing only on small targeted ranges, with counters and summaries instead of per-step logs.
How do I install it?
Run npx skills add https://github.com/p4nda0s/reverse-skills --skill rev-unicorn-debug.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Warn. Snyk: Pass.
Where is the source?
On GitHub at p4nda0s/reverse-skills.
What are the best rev-unicorn-debug alternatives?
Popular alternatives to rev-unicorn-debug include reverse-engineer-anything, reverse-engineering and rev-frida. See all rev-unicorn-debug alternatives















