Tools
Read from the server's own tools/list, grouped the way the README groups them.
Load
load_binaryLoad a PE, ELF or Mach-O file (or raw bytes with arch) as the program all tools read, returning its summary. Clears the session's names: save_project first. A refused load changes nothing.binary_infoSummarize the loaded program: format, arch, entry, sections with entropy, imports, exports. load_binary already returns it; for protection and where to start, query borer://triage. Fails if nothing is loaded.fetch_pdbDownload the loaded PE's missing PDB over https into the cache, kept only if its GUID and age match. Use it when load_binary reports no PDB; dry run until dry_run=false, then load_binary again.reloadRestart the borer server on its rebuilt binary, keeping the session, the loaded file and its annotations. Use it after rebuilding borer instead of restarting the client; live attaches end.
Find
functionsList discovered functions as
entry size blocks instrs callers callees src name rows, paged; filter on name or entry hex, sort=size for the largest. Not for imports (use symbols).functionShow one function's raw facts: range, counts, callers, callees and block table (start size term successors), 300 blocks a page. Not for a readable triage (use function_summary).symbolsList imports, exports, forwards, locals and data as demangled kind addr name rows by module, paged. Not for discovered code (use functions) or call sites (use xrefs).stringsList printable ASCII and UTF-16LE strings as va len enc text rows, paged, skipping bytes of code. Not for the code using one (use find_function_by_string).searchSearch every byte of the file for a hex pattern with ?? wildcards, or text with kind=text, as function: va ... rows, paged. Not for listing strings (use strings).find_function_by_stringFind the functions whose strings contain a text, case-insensitively: a numbered string legend, then entry name: 1 2 rows, paged. Not for one function's strings (use function_strings).find_crypto_constantsFind crypto constants and tables (AES, SHA, MD5, CRC-32, ChaCha, Blowfish, FNV, Base64) and hashed API names as va section algorithm rows, paged. Use it to locate crypto code, then xrefs a hit; not for strings (use strings).entropyFind packed, compressed or encrypted data: chunks at or above threshold bits/byte, as off va len entropy rows, at most 200, paged. To name the packer query borer://protection instead.Read code
function_summaryTriage one function in one call: shape, loops, jump tables, callers, callees, strings and data, then
# next: lines. Use it before decompile; for the raw block table use function.function_stringsList the string literals one function references as site string_va text rows, at most 100. Not for finding a text's functions (use find_function_by_string).decompileDecompile one function to pseudo-C. Locals are local_N/arg_N (local_N is N hex bytes below the frame base: on x86 one word below the entry sp, so rbp-N where the prologue pushes rbp and sets it there; on arm the entry sp; higher N, lower address; local_mN is N bytes above the frame base); /* asm */ marks unmodeled code. Line 2 says what was checked, // warn: what is wrong. Not for a first look (use function_summary).decompile_batchDecompile many functions matching a name filter, in parallel, 6000 chars each and 40000 in all; out=<file.c> writes all uncapped to a file under the output root, kept unless overwrite=true. For one use decompile.disassembleDisassemble count instructions from any address as va text rows. Use it for a few instructions or code outside functions; for a whole function use disassemble_function. Fails if unmapped.disassemble_functionDisassemble a whole function by blocks, with L_<addr>: labels and named call targets, CIL for .NET. Use it when exact instructions matter; for C use decompile, for a few instructions disassemble.cfgDraw a function's control-flow graph as mermaid: blocks and successor edges, 300 blocks a page, a %% line when cut. Not for reading logic (use decompile) or a block table (use function).callgraphDraw a function's call graph as mermaid: callees, or callers with callers=true; imports are leaves and a %% line counts nodes cut by max_nodes. Not for one path (use reaches) or a caller list (use xrefs).reachesFind the shortest call chain from one function to another or to an import, or say none exists within depth. Not for the whole neighbourhood (use callgraph) or direct callers (use xrefs).xrefsList references to an address or name, one row per function, paged; an import lists calls through its slot, Class+0x24 who touches that field. Not for call paths (use reaches).class_layoutInfer a C++ class's fields, methods and vftable from how its methods use the object: offset, width, reads, writes. Use it on an unknown class; for a known layout use set_type. apply=Name saves it as a struct (dry run until dry_run=false).Read data
readRead typed values (kind) as
va value rows, or a user type (type) one row per field, pointers named; stops at the first unmapped byte. Not for raw bytes (use hexdump) or a live process (live_read).hexdumpHexdump raw bytes at an address as address hex |ascii| rows; a range past mapped bytes shows what is there. Not for typed values (use read), text (use strings) or a live process (live_read).Annotate
set_nameName a function or data global in the session overlay, never the binary; names=[addr=name,...] renames many, checked first. A taken name needs force=true. Dry run until dry_run=false.set_commentComment an address in the session overlay, never the binary; a comment opening with ? is an open question. To name it use set_name. Dry run until dry_run=false; save_project keeps it.set_typeDefine a struct, enum or typedef, or apply a type at an address so decompile names its fields; at a function, type sets the prototype. To infer a class use class_layout. Checked first; dry run until dry_run=false.typesList user-defined types and where each is applied, paged. Not for defining one (use set_type) or names and comments (use annotations).annotationsList the names, findings and open questions (comments opening with ?) added this session, paged. Use it to resume work; not for binary symbols (use symbols) or user types (use types).save_projectSave the session's names, comments and types to a .json project under the output root, keyed by SHA-256. Restore with load_project; an existing file is kept unless overwrite=true.load_projectReplace the session's names, comments and types with a saved .json project. Another binary's project (by SHA-256) is refused unless force=true; for a rebuild use borer://carry.
Live process (Windows)
live_attachAttach read-only to a process (name or pid) running the loaded binary (any with BORER_LIVE_ANY=1); live tools then take static addresses. Windows only.live_detachDetach from the attached process, dropping its watches and scan sets.live_modulesList the attached process's modules (base, size, name), paged.live_readRead typed values from the attached process; pointers say what they point at.live_objectRead an object in the attached process as its class: fields named and typed, pointers resolved.live_instancesFind a class's objects in the attached process by its vtable, paged.live_watchWith address, snapshot attached-process memory as name; without, show what changed since, fields named.live_scanFind addresses in the attached process holding a value. First scan: value, kind, scope; hits kept as set
name (8 sets). Next scan: name + compare re-reads them; name alone pages them. compare=path: pointer chains [[module+off]+o1]+o2 to the address in value.Anything else
queryRead a borer:// resource (triage, taint, emulate, solve, grep...) for hosts without MCP resources; same answer as resources/read. Use it for analyses no tool has; borer://help lists them, !offset=N!limit=N pages.scriptRun a sandboxed Rhai script on a snapshot of the program: query(uri) and rows(uri) read any resource. Use it when no single tool answers. Proposed names apply only with dry_run=false; a failed script applies nothing.