[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EHTQ31PGDF7Q4YN343W6N4":3,"skill-same:01M6EHTQ31PGDF7Q4YN343W6N4":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6EHTQ31PGDF7Q4YN343W6N4","binary-re-static-analysis",null,"Use when analyzing binary structure, disassembling code, or decompiling functions. Deep static analysis via radare2 (r2) and Ghidra headless - function enumeration, cross-references (xrefs), decompilation, control flow graphs. Keywords - \"disassemble\", \"decompile\", \"what does this function do\", \"find functions\", \"analyze code\", \"r2\", \"ghidra\", \"pdg\", \"afl\"","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Fbinary-re\u002Fstatic-analysis\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"binary re static analysis","binary","analysis","static analysis","functions","via","radare2","control","deep","structure","do","references","use","find","analyze","decompilation","flow","analyzing","ghidra","code","2026-11-10 10:12:30",false,"---\nname: binary-re-static-analysis\ndescription: Use when analyzing binary structure, disassembling code, or decompiling functions. Deep static analysis via radare2 (r2) and Ghidra headless - function enumeration, cross-references (xrefs), decompilation, control flow graphs. Keywords - \"disassemble\", \"decompile\", \"what does this function do\", \"find functions\", \"analyze code\", \"r2\", \"ghidra\", \"pdg\", \"afl\"\n---\n\n# Static Analysis (Phases 2-3)\n\n## Purpose\n\nUnderstand binary structure and logic without execution. Map functions, trace data flow, decompile critical code.\n\n## When to Use\n\n- After triage has established architecture and ABI\n- To understand specific functions identified as interesting\n- When dynamic analysis is impractical or risky\n- To build hypotheses before dynamic verification\n\n## Pre-Analysis: Compare Known I\u002FO First\n\n**CRITICAL:** Before diving into disassembly, check if known inputs\u002Foutputs exist.\n\n⚠️ **REQUIRES HUMAN APPROVAL** - Get explicit approval before any execution, even for I\u002FO comparison.\n\n```bash\n# SAFE: Use emulation for cross-arch binaries (after human approval)\n# ARM32:\nqemu-arm -L \u002Fusr\u002Farm-linux-gnueabihf -- .\u002Fbinary \u003C input.txt > actual.txt\n\n# ARM64:\nqemu-aarch64 -L \u002Fusr\u002Faarch64-linux-gnu -- .\u002Fbinary \u003C input.txt > actual.txt\n\n# Docker-based (macOS\u002Fcross-arch - see dynamic-analysis Option D):\ndocker run --rm --platform linux\u002Farm\u002Fv7 -v ~\u002Fsamples:\u002Fwork:ro \\\n  arm32v7\u002Fdebian:bullseye-slim sh -c '\u002Fwork\u002Fbinary \u003C \u002Fwork\u002Finput.txt' > actual.txt\n\n# x86-64 native (still requires approval):\n.\u002Fbinary \u003C input.txt > actual.txt\n\n# Compare outputs:\ndiff expected.txt actual.txt\ncmp -l expected.txt actual.txt | head -20  # Byte-level differences\n\n# Record findings:\n# - Where does output first diverge?\n# - Does file size match? (logic bug vs truncation)\n# - What pattern appears in corruption?\n```\n\nThis step often reveals the bug category before any code analysis.\n\n---\n\n## Two-Stage Approach\n\n**Stage 1 (Light):** Function enumeration, strings, imports - fast, broad coverage\n**Stage 2 (Deep):** Targeted decompilation, CFG analysis - slow, focused\n\n## Stage 1: Light Analysis (radare2)\n\n### Analysis Depth Selection\n\n| Binary Size | Command | Tradeoff |\n|-------------|---------|----------|\n| \u003C 500KB | `aaa` | Full analysis, may be slow |\n| 500KB - 5MB | `aa; aac` | Functions + all call targets |\n| > 5MB | `aa` + targeted `af @addr` | Fast, manual depth control |\n\n### Session Setup\n\n```bash\n# Launch r2 with controlled analysis\nr2 -q0 -e scr.color=false -e anal.timeout=120 -e anal.maxsize=67108864 binary\n\n# Inside r2 (choose based on binary size):\naa       # Basic analysis\naac      # Also analyze all call targets (recommended for most binaries)\n```\n\n**Critical settings:**\n- `anal.timeout=120` - Prevent runaway analysis\n- `anal.maxsize=67108864` - 64MB max function size\n- Use `aa; aac` for medium binaries, `aaa` only for small ones\n\n### Handling Unanalyzed Call Targets\n\nIf `axtj` returns empty for known imports:\n\n```bash\n# The import may be called indirectly or analysis was too shallow\n# Option 1: Deeper analysis\naac   # Analyze all calls\n\n# Option 2: Manually create function at call target\naf @0x8048abc\n\n# Option 3: Search for references to import address\naxtj @sym.imp.connect\n```\n\n### Function Enumeration\n\n```bash\n# All functions as JSON\naflj\n\n# Filter by name pattern\naflj~main\naflj~init\naflj~network\naflj~send\naflj~recv\n\n# Function count\nafl~?\n```\n\n### Cross-Reference Analysis\n\n```bash\n# Who calls this function?\naxtj @sym.imp.connect\n\n# What does this function call?\naxfj @sym.main\n\n# Data references to address\naxtj @0x12345\n```\n\n### String-Function Correlation\n\n```bash\n# Find which function contains a string\nizj~api.vendor.com\n# Note the vaddr, then find containing function\nafi @0xVADDR\n\n# Or search and map\n\"\u002Fj api\"    # Search for string\naxtj @@hit* # Xrefs to all hits\n```\n\n### Import\u002FExport Mapping\n\n```bash\n# Imports with addresses\niij\n\n# Exports with addresses\niEj\n\n# Symbols (if not stripped)\nisj\n```\n\n### Quick Disassembly\n\n```bash\n# Disassemble function as JSON\npdfj @sym.main\n\n# Disassemble N instructions from address\npdj 20 @0x8400\n\n# Print function summary\nafi @sym.main\n```\n\n## Stage 2: Deep Analysis\n\n### r2ghidra Availability Check\n\n**Before attempting decompilation, verify r2ghidra is installed:**\n\n```bash\n# Check if r2ghidra is available\nr2 -qc 'pdg?' - 2>\u002Fdev\u002Fnull | grep -q Usage && echo \"r2ghidra OK\" || echo \"SKIP: r2ghidra not installed\"\n\n# If missing, install with:\nr2pm -ci r2ghidra\n```\n\n**If r2ghidra unavailable:** Rely on disassembly (`pdf`) and cross-reference analysis (`axt\u002Faxf`).\n\n### Targeted Decompilation (r2ghidra)\n\n```bash\n# Decompile specific function\npdgj @sym.target_function\n\n# Or named function\npdgj @sym.main\n```\n\n### Ghidra Headless (Large Binaries)\n\nFor complex functions or when r2ghidra struggles:\n\n```bash\n# Create analysis project and run script\nanalyzeHeadless \u002Ftmp\u002Fghidra_proj proj \\\n  -import binary \\\n  -overwrite \\\n  -processor ARM:LE:32:v7 \\\n  -postScript ExportDecompilation.java sym.target_function \\\n  -deleteProject\n```\n\n**Processor strings:**\n- ARM 32-bit: `ARM:LE:32:v7` or `ARM:LE:32:Cortex`\n- ARM 64-bit: `AARCH64:LE:64:v8A`\n- x86_64: `x86:LE:64:default`\n- MIPS LE: `MIPS:LE:32:default`\n- MIPS BE: `MIPS:BE:32:default`\n\n### Control Flow Analysis\n\n```bash\n# Basic blocks in function\nafbj @sym.main\n\n# Function call graph (dot format)\nagCd @sym.main > callgraph.dot\n\n# Control flow graph\nagfd @sym.main > cfg.dot\n```\n\n### Data Structure Recovery\n\n```bash\n# Analyze local variables\nafvj @sym.main\n\n# Stack frame layout\nafvd @sym.main\n\n# Global data references\nadrj\n```\n\n## Analysis Patterns\n\n### Pattern: Network Function Tracing\n\n```bash\n# Find all network-related calls\naxtj @sym.imp.socket\naxtj @sym.imp.connect\naxtj @sym.imp.send\naxtj @sym.imp.recv\naxtj @sym.imp.SSL_read\naxtj @sym.imp.SSL_write\n\n# Trace caller chain\nfor func in $(aflj | jq -r '.[].name'); do\n  axfj @$func | grep -q \"socket\\|connect\" && echo $func\ndone\n```\n\n### Pattern: Configuration File Analysis\n\n```bash\n# Find file operations\naxtj @sym.imp.open\naxtj @sym.imp.fopen\n\n# Trace string arguments\n\"\u002Fj \u002Fetc\"\n\"\u002Fj .conf\"\n\"\u002Fj .json\"\n\n# Check what functions reference these paths\n```\n\n### Pattern: Crypto Identification\n\n```bash\n# Common crypto imports\naxtj @sym.imp.EVP_EncryptInit\naxtj @sym.imp.AES_encrypt\naxtj @sym.imp.SHA256\n\n# Hardcoded keys (check strings near crypto calls)\nizj | jq '.strings[] | select(.length == 16 or .length == 32)'\n```\n\n## r2 JSON Commands Reference\n\n| Command | Output | Use Case |\n|---------|--------|----------|\n| `aflj` | Functions list | Map code structure |\n| `axtj @addr` | Xrefs TO address | Who uses this? |\n| `axfj @addr` | Xrefs FROM address | What does it call? |\n| `pdfj @addr` | Disassembly | Understand instructions |\n| `pdgj @addr` | Decompilation | Pseudo-C output |\n| `afbj @addr` | Basic blocks | Control flow |\n| `izj` | Data strings | Configuration, URLs |\n| `iij` | Imports | External dependencies |\n| `iEj` | Exports | Public interface |\n| `afvj @addr` | Local variables | Stack analysis |\n\n## Output Format\n\nRecord analysis findings as structured facts:\n\n```json\n{\n  \"functions_analyzed\": [\n    {\n      \"name\": \"sub_8400\",\n      \"address\": \"0x8400\",\n      \"size\": 256,\n      \"calls\": [\"socket\", \"connect\", \"send\"],\n      \"called_by\": [\"main\", \"init_network\"],\n      \"strings_referenced\": [\"api.vendor.com\"],\n      \"hypothesis\": \"network_initialization\"\n    }\n  ],\n  \"call_graph\": {\n    \"main\": [\"init_config\", \"init_network\", \"main_loop\"],\n    \"init_network\": [\"sub_8400\", \"SSL_CTX_new\"]\n  },\n  \"data_flow\": [\n    {\n      \"source\": \"config_file_read\",\n      \"through\": [\"parse_config\", \"extract_url\"],\n      \"sink\": \"connect_to_server\"\n    }\n  ]\n}\n```\n\n## Knowledge Journaling\n\nAfter static analysis, record findings for episodic memory:\n\n```\n[BINARY-RE:static] {filename} (sha256: {hash})\n\nFunctions analyzed: {count}\nDecompilation performed: {yes|no}\n\nKey functions:\n  FACT: Function at {addr} calls {imports} (source: r2 axfj)\n  FACT: Function at {addr} references string \"{string}\" (source: r2 axtj)\n  FACT: Function {name} appears to {purpose} (source: decompilation)\n\nCross-references:\n  FACT: {caller} calls {callee} (source: r2 axtj)\n\nHYPOTHESIS UPDATE: {refined theory} (confidence: {new_value})\n  Supporting: {fact_ids}\n  Contradicting: {fact_ids}\n\nNew questions:\n  QUESTION: {discovered unknown}\n\nAnswered questions:\n  RESOLVED: {question} → {answer}\n```\n\n### Example Journal Entry\n\n```\n[BINARY-RE:static] thermostat_daemon (sha256: a1b2c3d4...)\n\nFunctions analyzed: 47\nDecompilation performed: yes (function 0x8400)\n\nKey functions:\n  FACT: Function 0x8400 calls curl_easy_perform, curl_easy_setopt (source: r2 axfj)\n  FACT: Function 0x8400 references string \"api.thermco.com\u002Ftelemetry\" (source: r2 axtj)\n  FACT: Function 0x9200 parses JSON using jsmn library (source: decompilation)\n  FACT: Function 0x10800 is main loop, calls 0x8400 after sleep(30) (source: r2 pdf)\n\nCross-references:\n  FACT: main calls init_config (0x9000) then main_loop (0x10800) (source: r2 axtj)\n  FACT: main_loop calls send_telemetry (0x8400) in loop (source: r2 pdf)\n\nHYPOTHESIS UPDATE: Telemetry client sending to api.thermco.com every 30 seconds (confidence: 0.85)\n  Supporting: URL string, curl imports, sleep(30) in loop\n  Contradicting: none\n\nNew questions:\n  QUESTION: What data fields are included in telemetry payload?\n  QUESTION: Is there any authentication\u002FAPI key?\n\nAnswered questions:\n  RESOLVED: \"What endpoint?\" → api.thermco.com\u002Ftelemetry via HTTPS\n```\n\n## Decision Points\n\nAfter static analysis:\n\n1. **Identified critical functions?** → Ready for dynamic verification\n2. **Unclear behavior?** → Try dynamic analysis for runtime observation\n3. **Crypto detected?** → Document key handling, note for security review\n4. **Anti-analysis patterns?** → Consider Unicorn snippet emulation\n\n## Next Steps\n\n→ `binary-re-dynamic-analysis` to verify hypotheses with runtime observation\n→ `binary-re-synthesis` if sufficient understanding reached\n","# Static Analysis (Phases 2-3)\n\n## Purpose\n\nUnderstand binary structure and logic without execution. Map functions, trace data flow, decompile critical code.\n\n## When to Use\n\n- After triage has established architecture and ABI\n- To understand specific functions identified as interesting\n- When dynamic analysis is impractical or risky\n- To build hypotheses before dynamic verification\n\n## Pre-Analysis: Compare Known I\u002FO First\n\n**CRITICAL:** Before diving into disassembly, check if known inputs\u002Foutputs exist.\n\n⚠️ **REQUIRES HUMAN APPROVAL** - Get explicit approval before any execution, even for I\u002FO comparison.\n\n```bash\n# SAFE: Use emulation for cross-arch binaries (after human approval)\n# ARM32:\nqemu-arm -L \u002Fusr\u002Farm-linux-gnueabihf -- .\u002Fbinary \u003C input.txt > actual.txt\n\n# ARM64:\nqemu-aarch64 -L \u002Fusr\u002Faarch64-linux-gnu -- .\u002Fbinary \u003C input.txt > actual.txt\n\n# Docker-based (macOS\u002Fcross-arch - see dynamic-analysis Option D):\ndocker run --rm --platform linux\u002Farm\u002Fv7 -v ~\u002Fsamples:\u002Fwork:ro \\\n  arm32v7\u002Fdebian:bullseye-slim sh -c '\u002Fwork\u002Fbinary \u003C \u002Fwork\u002Finput.txt' > actual.txt\n\n# x86-64 native (still requires approval):\n.\u002Fbinary \u003C input.txt > actual.txt\n\n# Compare outputs:\ndiff expected.txt actual.txt\ncmp -l expected.txt actual.txt | head -20  # Byte-level differences\n\n# Record findings:\n# - Where does output first diverge?\n# - Does file size match? (logic bug vs truncation)\n# - What pattern appears in corruption?\n```\n\nThis step often reveals the bug category before any code analysis.\n\n---\n\n## Two-Stage Approach\n\n**Stage 1 (Light):** Function enumeration, strings, imports - fast, broad coverage\n**Stage 2 (Deep):** Targeted decompilation, CFG analysis - slow, focused\n\n## Stage 1: Light Analysis (radare2)\n\n### Analysis Depth Selection\n\n| Binary Size | Command | Tradeoff |\n|-------------|---------|----------|\n| \u003C 500KB | `aaa` | Full analysis, may be slow |\n| 500KB - 5MB | `aa; aac` | Functions + all call targets |\n| > 5MB | `aa` + targeted `af @addr` | Fast, manual depth control |\n\n### Session Setup\n\n```bash\n# Launch r2 with controlled analysis\nr2 -q0 -e scr.color=false -e anal.timeout=120 -e anal.maxsize=67108864 binary\n\n# Inside r2 (choose based on binary size):\naa       # Basic analysis\naac      # Also analyze all call targets (recommended for most binaries)\n```\n\n**Critical settings:**\n- `anal.timeout=120` - Prevent runaway analysis\n- `anal.maxsize=67108864` - 64MB max function size\n- Use `aa; aac` for medium binaries, `aaa` only for small ones\n\n### Handling Unanalyzed Call Targets\n\nIf `axtj` returns empty for known imports:\n\n```bash\n# The import may be called indirectly or analysis was too shallow\n# Option 1: Deeper analysis\naac   # Analyze all calls\n\n# Option 2: Manually create function at call target\naf @0x8048abc\n\n# Option 3: Search for references to import address\naxtj @sym.imp.connect\n```\n\n### Function Enumeration\n\n```bash\n# All functions as JSON\naflj\n\n# Filter by name pattern\naflj~main\naflj~init\naflj~network\naflj~send\naflj~recv\n\n# Function count\nafl~?\n```\n\n### Cross-Reference Analysis\n\n```bash\n# Who calls this function?\naxtj @sym.imp.connect\n\n# What does this function call?\naxfj @sym.main\n\n# Data references to address\naxtj @0x12345\n```\n\n### String-Function Correlation\n\n```bash\n# Find which function contains a string\nizj~api.vendor.com\n# Note the vaddr, then find containing function\nafi @0xVADDR\n\n# Or search and map\n\"\u002Fj api\"    # Search for string\naxtj @@hit* # Xrefs to all hits\n```\n\n### Import\u002FExport Mapping\n\n```bash\n# Imports with addresses\niij\n\n# Exports with addresses\niEj\n\n# Symbols (if not stripped)\nisj\n```\n\n### Quick Disassembly\n\n```bash\n# Disassemble function as JSON\npdfj @sym.main\n\n# Disassemble N instructions from address\npdj 20 @0x8400\n\n# Print function summary\nafi @sym.main\n```\n\n## Stage 2: Deep Analysis\n\n### r2ghidra Availability Check\n\n**Before attempting decompilation, verify r2ghidra is installed:**\n\n```bash\n# Check if r2ghidra is available\nr2 -qc 'pdg?' - 2>\u002Fdev\u002Fnull | grep -q Usage && echo \"r2ghidra OK\" || echo \"SKIP: r2ghidra not installed\"\n\n# If missing, install with:\nr2pm -ci r2ghidra\n```\n\n**If r2ghidra unavailable:** Rely on disassembly (`pdf`) and cross-reference analysis (`axt\u002Faxf`).\n\n### Targeted Decompilation (r2ghidra)\n\n```bash\n# Decompile specific function\npdgj @sym.target_function\n\n# Or named function\npdgj @sym.main\n```\n\n### Ghidra Headless (Large Binaries)\n\nFor complex functions or when r2ghidra struggles:\n\n```bash\n# Create analysis project and run script\nanalyzeHeadless \u002Ftmp\u002Fghidra_proj proj \\\n  -import binary \\\n  -overwrite \\\n  -processor ARM:LE:32:v7 \\\n  -postScript ExportDecompilation.java sym.target_function \\\n  -deleteProject\n```\n\n**Processor strings:**\n- ARM 32-bit: `ARM:LE:32:v7` or `ARM:LE:32:Cortex`\n- ARM 64-bit: `AARCH64:LE:64:v8A`\n- x86_64: `x86:LE:64:default`\n- MIPS LE: `MIPS:LE:32:default`\n- MIPS BE: `MIPS:BE:32:default`\n\n### Control Flow Analysis\n\n```bash\n# Basic blocks in function\nafbj @sym.main\n\n# Function call graph (dot format)\nagCd @sym.main > callgraph.dot\n\n# Control flow graph\nagfd @sym.main > cfg.dot\n```\n\n### Data Structure Recovery\n\n```bash\n# Analyze local variables\nafvj @sym.main\n\n# Stack frame layout\nafvd @sym.main\n\n# Global data references\nadrj\n```\n\n## Analysis Patterns\n\n### Pattern: Network Function Tracing\n\n```bash\n# Find all network-related calls\naxtj @sym.imp.socket\naxtj @sym.imp.connect\naxtj @sym.imp.send\naxtj @sym.imp.recv\naxtj @sym.imp.SSL_read\naxtj @sym.imp.SSL_write\n\n# Trace caller chain\nfor func in $(aflj | jq -r '.[].name'); do\n  axfj @$func | grep -q \"socket\\|connect\" && echo $func\ndone\n```\n\n### Pattern: Configuration File Analysis\n\n```bash\n# Find file operations\naxtj @sym.imp.open\naxtj @sym.imp.fopen\n\n# Trace string arguments\n\"\u002Fj \u002Fetc\"\n\"\u002Fj .conf\"\n\"\u002Fj .json\"\n\n# Check what functions reference these paths\n```\n\n### Pattern: Crypto Identification\n\n```bash\n# Common crypto imports\naxtj @sym.imp.EVP_EncryptInit\naxtj @sym.imp.AES_encrypt\naxtj @sym.imp.SHA256\n\n# Hardcoded keys (check strings near crypto calls)\nizj | jq '.strings[] | select(.length == 16 or .length == 32)'\n```\n\n## r2 JSON Commands Reference\n\n| Command | Output | Use Case |\n|---------|--------|----------|\n| `aflj` | Functions list | Map code structure |\n| `axtj @addr` | Xrefs TO address | Who uses this? |\n| `axfj @addr` | Xrefs FROM address | What does it call? |\n| `pdfj @addr` | Disassembly | Understand instructions |\n| `pdgj @addr` | Decompilation | Pseudo-C output |\n| `afbj @addr` | Basic blocks | Control flow |\n| `izj` | Data strings | Configuration, URLs |\n| `iij` | Imports | External dependencies |\n| `iEj` | Exports | Public interface |\n| `afvj @addr` | Local variables | Stack analysis |\n\n## Output Format\n\nRecord analysis findings as structured facts:\n\n```json\n{\n  \"functions_analyzed\": [\n    {\n      \"name\": \"sub_8400\",\n      \"address\": \"0x8400\",\n      \"size\": 256,\n      \"calls\": [\"socket\", \"connect\", \"send\"],\n      \"called_by\": [\"main\", \"init_network\"],\n      \"strings_referenced\": [\"api.vendor.com\"],\n      \"hypothesis\": \"network_initialization\"\n    }\n  ],\n  \"call_graph\": {\n    \"main\": [\"init_config\", \"init_network\", \"main_loop\"],\n    \"init_network\": [\"sub_8400\", \"SSL_CTX_new\"]\n  },\n  \"data_flow\": [\n    {\n      \"source\": \"config_file_read\",\n      \"through\": [\"parse_config\", \"extract_url\"],\n      \"sink\": \"connect_to_server\"\n    }\n  ]\n}\n```\n\n## Knowledge Journaling\n\nAfter static analysis, record findings for episodic memory:\n\n```\n[BINARY-RE:static] {filename} (sha256: {hash})\n\nFunctions analyzed: {count}\nDecompilation performed: {yes|no}\n\nKey functions:\n  FACT: Function at {addr} calls {imports} (source: r2 axfj)\n  FACT: Function at {addr} references string \"{string}\" (source: r2 axtj)\n  FACT: Function {name} appears to {purpose} (source: decompilation)\n\nCross-references:\n  FACT: {caller} calls {callee} (source: r2 axtj)\n\nHYPOTHESIS UPDATE: {refined theory} (confidence: {new_value})\n  Supporting: {fact_ids}\n  Contradicting: {fact_ids}\n\nNew questions:\n  QUESTION: {discovered unknown}\n\nAnswered questions:\n  RESOLVED: {question} → {answer}\n```\n\n### Example Journal Entry\n\n```\n[BINARY-RE:static] thermostat_daemon (sha256: a1b2c3d4...)\n\nFunctions analyzed: 47\nDecompilation performed: yes (function 0x8400)\n\nKey functions:\n  FACT: Function 0x8400 calls curl_easy_perform, curl_easy_setopt (source: r2 axfj)\n  FACT: Function 0x8400 references string \"api.thermco.com\u002Ftelemetry\" (source: r2 axtj)\n  FACT: Function 0x9200 parses JSON using jsmn library (source: decompilation)\n  FACT: Function 0x10800 is main loop, calls 0x8400 after sleep(30) (source: r2 pdf)\n\nCross-references:\n  FACT: main calls init_config (0x9000) then main_loop (0x10800) (source: r2 axtj)\n  FACT: main_loop calls send_telemetry (0x8400) in loop (source: r2 pdf)\n\nHYPOTHESIS UPDATE: Telemetry client sending to api.thermco.com every 30 seconds (confidence: 0.85)\n  Supporting: URL string, curl imports, sleep(30) in loop\n  Contradicting: none\n\nNew questions:\n  QUESTION: What data fields are included in telemetry payload?\n  QUESTION: Is there any authentication\u002FAPI key?\n\nAnswered questions:\n  RESOLVED: \"What endpoint?\" → api.thermco.com\u002Ftelemetry via HTTPS\n```\n\n## Decision Points\n\nAfter static analysis:\n\n1. **Identified critical functions?** → Ready for dynamic verification\n2. **Unclear behavior?** → Try dynamic analysis for runtime observation\n3. **Crypto detected?** → Document key handling, note for security review\n4. **Anti-analysis patterns?** → Consider Unicorn snippet emulation\n\n## Next Steps\n\n→ `binary-re-dynamic-analysis` to verify hypotheses with runtime observation\n→ `binary-re-synthesis` if sufficient understanding reached\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Fbinary-re\u002Fstatic-analysis",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill binary-re-static-analysis",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill binary-re-static-analysis",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill binary-re-static-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Fbinary-re\u002Fstatic-analysis\u002FSKILL.md",true,[67,73],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"codex\u002Fprompt.md","REFERENCE","参考文档",71,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fcrates\u002Fautospec-cli\u002Ftests\u002Ffixtures\u002Fvalidation-cutover\u002Fautospec-loop\u002Fskills\u002Fautospec\u002Fcodex\u002Fprompt.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":75},"opencode\u002Fagent.md","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fcrates\u002Fautospec-cli\u002Ftests\u002Ffixtures\u002Fvalidation-cutover\u002Fautospec-loop\u002Fskills\u002Fautospec\u002Fopencode\u002Fagent.md",[77,86,95,104,110,116],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]