disassembly
Query Binary Ninja disassembly: functions, segments, instructions, blocks. Use for code-level analysis and instruction inspection.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Query Binary Ninja disassembly: functions, segments, instructions, blocks. Use for code-level analysis and instruction inspection.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Connect to Binary Ninja databases and bootstrap sessions. Use when starting analysis, routing to other skills, or setting up CLI/HTTP/MCP connections.
Query Binary Ninja strings, bytes, and binary patterns. Use search_bytes() for native fast pattern search.
Complete bnsql SQL function reference catalog.
BNSQL analysis workflows: triage, security audit, crypto/network detection, multi-table queries.
Edit Binary Ninja databases: comments, renames, types, patches. Mutations require SELECT save() to persist (explicit-save model, v0.0.9+).
Decompile Binary Ninja functions via HLIL: pseudocode text, local variables, call sites. Always filter by func_addr.
| name | disassembly |
| description | Query Binary Ninja disassembly: functions, segments, instructions, blocks. Use for code-level analysis and instruction inspection. |
| allowed-tools | ["Bash","Read","Glob","Grep"] |
Query Binary Ninja's disassembly: functions, segments, basic blocks, and per-instruction rows.
| Table | Description | Required filter |
|---|---|---|
funcs | All detected functions | none |
segments | Memory segments | none |
blocks | Basic blocks inside functions | func_ea = X for perf |
instructions | One row per instruction | func_addr = X for perf |
entries | Entry points | none |
SELECT hex(address) AS addr, name, size
FROM funcs
ORDER BY size DESC
LIMIT 10;
SELECT name, hex(start) AS start, hex(end) AS end,
perm, class
FROM segments
ORDER BY start;
SELECT hex(start_ea) AS bb_start, hex(end_ea) AS bb_end
FROM blocks
WHERE func_ea = 0x401000
ORDER BY start_ea;
-- Single-address view
SELECT disasm(0x401000);
-- Per-instruction rows inside a function (constrained!)
SELECT hex(address) AS addr, mnemonic, operand
FROM instructions
WHERE func_addr = 0x401000
ORDER BY address;
instructions and blocks are high-cost when scanned unconstrained — they
walk every function in the database. Always pass func_addr = X
(instructions) or func_ea = X (blocks).
xrefs for call-graph and reference analysis (use the callers/callees
views, not func_start())decompiler for HLIL pseudocodedata for search_bytes() binary pattern searchFor exhaustive table column shapes and SQL function signatures, see
prompts/bnsql_agent.md in the bnsql repo. Use
PRAGMA table_xinfo(<table>) to confirm any column you're uncertain about.