Skip to main content
Glama

dynamically_unpack_binary

Unpack packed PE/ELF binaries by emulating CPU execution past packer stubs, detecting OEP tail jumps, and dumping unpacked memory images for analysis.

Instructions

Unicorn CPU emulation unpacker. Executes binary past packer stubs (UPX, Themida, crypters), detects OEP tail jumps, and dumps unpacked memory images.

Input Schema

NameRequiredDescriptionDefault
binary_pathYesAbsolute path to packed binary (PE, ELF)
max_instructionsNoMaximum CPU emulation steps (default: 50000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the core mechanism (Unicorn CPU emulation), the execution strategy (running past packer stubs), and the result (dumping unpacked memory images), but it omits operational details such as runtime expectations, output location, and whether the tool writes files or only returns data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences with no wasted words. It front-loads the tool's identity and follows with the key actions and outputs, making it easy for an agent to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description could do more to explain what is returned after dumping memory or how max_instructions affects behavior. It covers the core purpose but leaves operational gaps for a complex dynamic-analysis tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented in the schema. The description adds no additional meaning about binary_path or max_instructions, and the baseline score of 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific tool: an emulation-based unpacker that executes binaries past packer stubs, detects OEP tail jumps, and dumps unpacked memory. It names concrete packer families (UPX, Themida, crypters), which lets an agent distinguish it from passive siblings like detect_binary_protections or inspect_binary_layout.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage context: this tool is for packed binaries and specifically targets packer stubs and OEP tail jumps. It does not explicitly say when not to use it or name a sibling alternative such as detect_binary_protections as a prerequisite, but the context is clear enough for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.