/secskills-core:unpacking-protected-binariesfrom secskills-core
Unpacks protected executables (UPX, Themida, VMProtect) by dumping from memory and rebuilding import tables with Scylla, pe-sieve, or x64dbg. Use when binaries have high entropy, few imports, or unnamed sections.
Ships in secskills-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Static unpacking is a trap for anything beyond UPX. The reliable method is to let the program unpack itself, then take the result out of memory. Almost every protector, however sophisticated, must eventually produce executable code in a readable page — that moment is what you are waiting for.
Run protected samples only in a contained environment; see analyzing-malware.
binwalk -E shows uniformly high entropy across most of the fileLoadLibrary, GetProcAddress)UPX0/.themida/.vmp0analyzing-malware for containment,
triage, and IOC output; come back here for the unpacking stepanalyzing-dotnet-assemblies, which covers .NET
packers and managed memory dumping specificallyanalyzing-binariesbinwalk -Me extraction is a different job; see
analyzing-binariesThe response differs enormously between a commodity packer and a commercial protector, so spend a minute here.
diec target.exe # Detect It Easy — the best single identifier
rg -a -o 'UPX|MPRESS|Themida|VMProtect|ASPack|Enigma|Obsidium|PECompact' target.exe
binwalk -E target.exe # entropy profile
# Structural tells
readpe target.exe # or: rabin2 -S target.exe
# raw size ≈ 0 with large virtual size → section unpacked at runtime
# section marked writable AND executable → self-modifying
# entry point outside the first section → stub in a later section
# TLS callbacks present → code runs BEFORE the entry point
TLS callbacks matter. They execute before the entry point, so a debugger set to break at the EP has already run the protector's anti-debug checks. Set the debugger to break on TLS callbacks, not on the entry point.
| Identified as | Approach |
|---|---|
| UPX (unmodified) | upx -d — takes seconds |
| UPX (modified header) | Repair the magic, or unpack dynamically |
| Commodity crypter, custom stub | Dynamic dump at OEP |
| Themida, VMProtect, Enigma | Dump plus heavy import repair; expect virtualized functions to stay virtualized |
| .NET packer | analyzing-dotnet-assemblies |
upx -d target.exe -o unpacked.exe # try first, costs nothing
1. Break before the stub runs (TLS callbacks, or the EP if none)
2. Run until the unpacked code exists in memory
3. Find the OEP — the original entry point of the real program
4. Dump the process image
5. Rebuild the import table
6. Fix the PE headers and verify the dump loads
Finding the OEP is the part that takes judgment. Reliable signals:
security_init_cookie, a call to __scrt_common_main, or a
standard prologue. When execution lands somewhere that looks like normal
compiled code rather than obfuscated stub code, you have arrived.GetCommandLine / GetModuleHandle calls early in the real program.x64dbg workflow:
Options → Events → break on TLS callbacks and on system breakpoint
Run, then in the Memory Map set "Break on execute" for the target section
When it breaks, confirm the code looks compiler-generated → that is the OEP
# Dump from the debugger at OEP: Scylla (built into x64dbg)
# 1. Attach / already broken at OEP
# 2. Scylla → set OEP → IAT Autosearch → Get Imports
# 3. Fix invalid/unresolved entries, then Dump + Fix Dump
# Or dump externally
pe-sieve /pid <pid> /dmode 3 # dumps and repairs; good for automation
# hollows_hunter for scanning a whole system for unpacked/injected modules
Import repair is where most dumps fail. Packers replace the import table with a runtime-resolved stub, so a raw dump has API calls pointing into the packer's own thunk area. Scylla's IAT search finds the resolved table; when it returns unresolved entries, that usually means:
Verify the dump before analyzing it:
readpe dumped.exe | head -30 # sane headers, correct EP
rabin2 -i dumped.exe | head -20 # imports resolve to real API names
# The strongest test: does it run, or does a decompiler produce sane output?
Themida, VMProtect, Enigma, and similar do more than pack. Expect:
The practical decision: if only a few functions are virtualized, dump and analyze everything else, then handle those functions dynamically — hook their inputs and outputs rather than reading their logic. That answers "what does it do" without defeating the VM.
Some samples never fully unpack in one place: they decrypt individual functions on demand and re-encrypt after use, or they run entirely from a JIT-style buffer.
upx -d failed, so it isn't UPX." Modified UPX headers are the most
common commodity evasion. Check the section names and stub pattern.analyzing-malware — containment, capability model, IOCs; the workflow this fits intoanalyzing-binaries — post-unpacking analysis and anti-analysis handlinganalyzing-dotnet-assemblies — .NET packers and managed dumpingWhat SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jul 31, 2026
30 skills in this plugin
/analyzing-binariesReverse engineer compiled binaries, firmware, and mobile app packages using triage, static disassembly, decompilation, and dynamic instrumentation. Use when analyzing an executable, ELF/PE/Mach-O file, firmware image, or stripped binary, recovering an algorithm or protocol, or working a CTF reversing challenge./analyzing-dotnet-assembliesReverse engineer .NET assemblies and executables with dnSpyEx, ILSpy, and de4dot — identifying and unwrapping obfuscators and packers, deobfuscating control flow and string encryption, handling single-file and NativeAOT publishes, and patching IL. Use when a binary is a managed PE, when ILSpy shows mangled names or empty method bodies, or when analyzing .NET malware, a loader, or a Windows application./analyzing-npx claudepluginhub trilwu/secskills --plugin secskills-coreOther plugins' skills for the same job