From 9572d9f680513726f19ba2c807ea161397b21c77 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Tue, 20 Oct 2026 17:16:38 +0200 Subject: [PATCH] Configure persistent portable Java and Ghidra for Jean-Luc REA --- .../hermes-unraid/rea-ghidra/README.md | 86 + .../rea-ghidra/decompilation-result.json | 13 + .../rea-ghidra/native-launch-result.json | 6 + .../hermes-unraid/rea-ghidra/packages.json | 7 + .../rea-ghidra/synthetic-evidence.json | 2162 +++++++++++++++++ 5 files changed, 2274 insertions(+) create mode 100644 integrations/hermes-unraid/rea-ghidra/README.md create mode 100644 integrations/hermes-unraid/rea-ghidra/decompilation-result.json create mode 100644 integrations/hermes-unraid/rea-ghidra/native-launch-result.json create mode 100644 integrations/hermes-unraid/rea-ghidra/packages.json create mode 100644 integrations/hermes-unraid/rea-ghidra/synthetic-evidence.json diff --git a/integrations/hermes-unraid/rea-ghidra/README.md b/integrations/hermes-unraid/rea-ghidra/README.md new file mode 100644 index 0000000..85d292f --- /dev/null +++ b/integrations/hermes-unraid/rea-ghidra/README.md @@ -0,0 +1,86 @@ +# REA native decompilation: portable packages (2026-10-20) + +User decision: no derived Docker image, no image rebuild maintenance, no custom +startup installer, no container changes. The official Hermes image remains in use. + +Ghidra 12.1.4 and Temurin JDK21 official archives were downloaded, SHA256 checked +against published checksums, and extracted unchanged by Hermes UID99/GID100: + +- `/opt/data/tools/rea/ghidra-12.1.4` +- `/opt/data/tools/rea/jdk21` + +The existing `/opt/data` bind is on the NAS at +`/mnt/nvme-storage/appdata/Hermes-Agent-Desktop`. These files survive container +recreation; include them in appdata backup or restore from packages.json. +No binary archives or credentials are stored in Git. Ghidra officially supports +extracting a distribution and pointing JAVA_HOME at an extracted JDK. +This is operator-provided software in the data volume, not bundled Hermes code. +Future upstream image ABI/architecture changes still require revalidation. + +Only `jean-luc-picode` currently enables the REA plugin. Its config.yaml has the +same-name `mcp_servers.rea` engine-location override prescribed by the plugin's +connection-and-recovery guide, preserving `npx -y rea-agents@6.7.0 mcp`, +REA_GHIDRA_STARTUP_TIMEOUT_MS=900000, optional REA_PWNTOOLS_PYTHON forwarding, +and timeout=1000. JAVA_HOME and GHIDRA_INSTALL_DIR point to the directories above. +Plugin workflow skills remain enabled. Revisit the command pin with plugin updates. +No secrets are needed for these paths. Other profiles are not changed. +A new session/reconnection is needed for an already running REA process to use +the changed environment. No gateway or container restart is performed. + +Official references: +- https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/GhidraDocs/GettingStarted.md +- https://hermes-agent.nousresearch.com/docs/plugins/rea + +Own synthetic verification target and responses are under +`/opt/data/tools/rea/verification`. The binary is compiled from a tiny local C +function and analyzed statically, never executed. Test results are recorded +separately; open_binary alone is not decompilation proof. + +## Verified result + +Official Ghidra 12.1.4 returned REA analyze_function Evidence for hermes_probe, +including an int signature, branch x<11, x-5, x*7+13, assembly, and main as caller. +The first query took 150.16 seconds including first-start import; open_binary +alone took 7.43 seconds. Target never executed. See synthetic-evidence.json and +decompilation-result.json. This verifies x86_64 ELF, not arbitrary DOS targets. + +## Resolved npm project-policy interaction + +The normal launcher inherited /opt/hermes as cwd, where the upstream repository +.npmrc sets min-release-age=14 for its project dependencies. npm config reports +14 there and null in /opt/data. This was not a global npm rule. An approved +package-specific exception did not fix npx and has been removed. + +With the user's explicit approval, Jean-Luc's mcp_servers.rea now has: + +```yaml +command: npx +args: ["-y", "rea-agents@6.7.0", "mcp"] +cwd: /opt/data/tools/rea +timeout: 1000 +env: + GHIDRA_INSTALL_DIR: /opt/data/tools/rea/ghidra-12.1.4 + JAVA_HOME: /opt/data/tools/rea/jdk21 + REA_GHIDRA_STARTUP_TIMEOUT_MS: "900000" +``` + +Existing optional REA_PWNTOOLS_PYTHON forwarding was preserved. cwd is supported +by tools/mcp_tool_transport.py::_stdio_launch and propagated into the stdio child. +The repo .npmrc was not edited, no global npm setting changed, and no direct +Node/cache-path launcher or copy of REA was installed. Starting outside that +project means its age rule does not cover this REA invocation; this is a policy +scope change, not an equivalent package-age guarantee. + +Fresh launch tested as UID99 using Jean-Luc's actual saved configuration, +Hermes' own _connect_inputs environment filtering and _preflight_stdio_command, +then real MCP initialize/list_tools: 207 tools, analyze_function present. +See native-launch-result.json. No new LLM turn or production session was run. +Earlier direct REA test produced actual Ghidra pseudocode (above); these are two +separate checks, not a claimed capture of a live user session. + +For updates, keep the package pin in this intentional override aligned with the +reviewed REA plugin. The override is persistent; plugin updates must not be +assumed to rewrite it. Java/Ghidra archives need no Hermes image rebuild. + +Recreation survival follows from existing /opt/data bind and unchanged image; +a forced recreation was not performed just to test it. No services restarted. diff --git a/integrations/hermes-unraid/rea-ghidra/decompilation-result.json b/integrations/hermes-unraid/rea-ghidra/decompilation-result.json new file mode 100644 index 0000000..8f06028 --- /dev/null +++ b/integrations/hermes-unraid/rea-ghidra/decompilation-result.json @@ -0,0 +1,13 @@ +{ + "open_binary": { + "seconds": 7.43, + "mcp_error": false + }, + "analyze_function": { + "seconds": 150.16, + "mcp_error": false + }, + "decompiled_function_named": true, + "has_arithmetic": true, + "has_pseudocode": true +} \ No newline at end of file diff --git a/integrations/hermes-unraid/rea-ghidra/native-launch-result.json b/integrations/hermes-unraid/rea-ghidra/native-launch-result.json new file mode 100644 index 0000000..1a1f2b3 --- /dev/null +++ b/integrations/hermes-unraid/rea-ghidra/native-launch-result.json @@ -0,0 +1,6 @@ +{ + "hermes_native_env": true, + "hermes_preflight": true, + "rea_tool_count": 207, + "analyze_function_present": true +} \ No newline at end of file diff --git a/integrations/hermes-unraid/rea-ghidra/packages.json b/integrations/hermes-unraid/rea-ghidra/packages.json new file mode 100644 index 0000000..be6b7f7 --- /dev/null +++ b/integrations/hermes-unraid/rea-ghidra/packages.json @@ -0,0 +1,7 @@ +{ + "jdk_url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.12.1%2B1/OpenJDK21U-jdk_x64_linux_hotspot_21.0.12.1_1.tar.gz", + "jdk_sha256": "ce79869e1307ed8ee1e2baa86a412b1eb5b75d10a01006d788a6f968bcfaee94", + "jdk_version": "jdk-21.0.12.1+1", + "ghidra_url": "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.1.4_build/ghidra_12.1.4_PUBLIC_20260921.zip", + "ghidra_sha256": "ddac49f903da9d5bac833e5cc79395098b9c33cfd3279be5f31bd00387d2d4db" +} diff --git a/integrations/hermes-unraid/rea-ghidra/synthetic-evidence.json b/integrations/hermes-unraid/rea-ghidra/synthetic-evidence.json new file mode 100644 index 0000000..0c7dcc5 --- /dev/null +++ b/integrations/hermes-unraid/rea-ghidra/synthetic-evidence.json @@ -0,0 +1,2162 @@ +{ + "evidence_id": "ev_d025ee3cab42ce04ce273ee250676a71176a391512215b983c407fecad9b9ddb", + "subject": { + "name": "probe", + "digest": { + "sha256": "001ee999749076267f353ae6fd9e0b9aed3e0d3d19eb238e981fded611aaa2f0" + }, + "local_path": "/opt/data/tools/rea/verification/probe", + "format": "elf", + "architecture": "x86_64" + }, + "provider": { + "id": "ghidra", + "name": "Ghidra", + "version": "12.1.4" + }, + "analysis_profile": { + "provider": { + "id": "ghidra", + "name": "Ghidra", + "version": "12.1.4" + }, + "parameters": { + "target_kind": "executable", + "target_format": "elf", + "architecture": "x86_64", + "available_architectures": [ + "x86_64" + ], + "import_mode": "ephemeral-source-immutable", + "annotation_policy": "atomic-function-entry-metadata-v1", + "load_image_observations": "source-mappings-entry-context-v2", + "function_body_evidence": "complete-inclusive-ranges-v1", + "function_references": "complete-body-and-entry-reference-manager-v2", + "call_relationship_coverage": "function-body-call-coverage-v5", + "function_dossier_coverage": "observed-facets-and-call-relationships-v1", + "string_inventory_evidence": "defined-data-coverage-v1", + "location_resolution": "explicit-address-exact-entry-symbol-first-v3", + "procedure_file_offset_resolution": "address-first-unique-target-source-mapping-v2", + "instruction_flow_evidence": "decoded-return-pcode-v1", + "instruction_references": "exact-address-incoming-without-synthetic-entry-v2", + "function_boundary_observations": "ghidra-function-boundary-limitations-v4", + "no_return_repair": "returning-imports-decoded-return-v2", + "process_launch": "inspected-jvm-launch-support-v1", + "jump_table_evidence": "typed-case-default-blocks-v1", + "decompiler_jump_loads": true, + "loader": "auto-from-header", + "language_id": "auto-from-header", + "compiler_spec_id": "auto-default", + "analyzer_preset": "ghidra-default" + }, + "digest": "769518a8e9b57f953dd241adbb63672f0f486bb3d66359b9deef7c5e088ca7aa" + }, + "predicate_type": "rea.analysis", + "operation": "analyze_function", + "parameters": { + "procedure": "hermes_probe" + }, + "raw_result": { + "value": { + "procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + }, + "signature": "int __stdcall hermes_probe(int x)", + "locals": [ + { + "description": "int x_local @ Stack[-0xc]:4", + "provenance": "ghidra-function-database" + } + ] + }, + "pseudocode": "\nint hermes_probe(int x)\n\n{\n int iVar1;\n int x_local;\n \n if (x < 0xb) {\n iVar1 = x + -5;\n }\n else {\n iVar1 = x * 7 + 0xd;\n }\n return iVar1;\n}\n\n", + "assembly": [ + "0x101129: PUSH RBP", + "0x10112a: MOV RBP, RSP", + "0x10112d: MOV dword ptr [RBP + -0x4], EDI", + "0x101130: CMP dword ptr [RBP + -0x4], 0xa", + "0x101134: JLE 0x00101145", + "0x101136: MOV EDX, dword ptr [RBP + -0x4]", + "0x101139: MOV EAX, EDX", + "0x10113b: SHL EAX, 0x3", + "0x10113e: SUB EAX, EDX", + "0x101140: ADD EAX, 0xd", + "0x101143: JMP 0x0010114b", + "0x101145: MOV EAX, dword ptr [RBP + -0x4]", + "0x101148: SUB EAX, 0x5", + "0x10114b: POP RBP", + "0x10114c: RET" + ], + "comments": [], + "callers": [ + { + "address": "0x10114d", + "name": "main", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x10114d", + "end": "0x10115c" + } + ], + "total_bytes": 16, + "span_bytes": 16, + "non_contiguous": false, + "contains_entry": true + } + } + ], + "callees": [], + "incoming_references": [ + { + "source_address": "0x101156", + "target_address": "0x101129", + "source_procedure": { + "address": "0x10114d", + "name": "main", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x10114d", + "end": "0x10115c" + } + ], + "total_bytes": 16, + "span_bytes": 16, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "UNCONDITIONAL_CALL", + "flow": true, + "call": true, + "jump": false, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x102028", + "target_address": "0x101129", + "source_procedure": null, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "INDIRECTION", + "flow": true, + "call": false, + "jump": false, + "data": false, + "read": false, + "write": false, + "indirect": true, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x1020c8", + "target_address": "0x101129", + "source_procedure": null, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "DATA", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + } + ], + "outgoing_references": [ + { + "source_address": "0x10112d", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "WRITE", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": false, + "write": true, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101130", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101134", + "target_address": "0x101145", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "CONDITIONAL_JUMP", + "flow": true, + "call": false, + "jump": true, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": true, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101136", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 1, + "external": false + } + }, + { + "source_address": "0x101143", + "target_address": "0x10114b", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "UNCONDITIONAL_JUMP", + "flow": true, + "call": false, + "jump": true, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101145", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 1, + "external": false + } + } + ], + "referenced_strings": [], + "referenced_names": [ + { + "address": "0x101145", + "value": "LAB_00101145", + "source_address": "0x101134" + }, + { + "address": "0x10114b", + "value": "LAB_0010114b", + "source_address": "0x101143" + } + ], + "basic_blocks": [ + { + "start": "0x101129", + "end": "0x101136", + "successors": [ + "0x101136", + "0x101145" + ] + }, + { + "start": "0x101136", + "end": "0x101145", + "successors": [ + "0x10114b" + ] + }, + { + "start": "0x101145", + "end": "0x10114b", + "successors": [ + "0x10114b" + ] + }, + { + "start": "0x10114b", + "end": "0x10114d", + "successors": [] + } + ], + "native_api": { + "available": true, + "provenance": "ghidra-high-function", + "signature_source": "imported", + "calling_convention": "__stdcall", + "return_type": { + "role": "return", + "ordinal": null, + "name": null, + "data_type": "int", + "size_bytes": 4, + "storage": "EAX:4", + "confidence": "high", + "evidence": [ + { + "kind": "signature-source", + "source": "ghidra-function-manager", + "detail": "Function signature source is imported." + }, + { + "kind": "decompiler-type", + "source": "ghidra-high-function", + "detail": "HighFunction recovered data type int." + } + ], + "decompiler_artifacts": [ + "recovered-signature", + "register-or-stack-storage" + ] + }, + "parameters": [ + { + "role": "parameter", + "ordinal": 0, + "name": "x", + "data_type": "int", + "size_bytes": 4, + "storage": "EDI:4", + "confidence": "high", + "evidence": [ + { + "kind": "signature-source", + "source": "ghidra-function-manager", + "detail": "Function signature source is imported." + }, + { + "kind": "decompiler-type", + "source": "ghidra-high-function", + "detail": "HighFunction recovered data type int." + }, + { + "kind": "type-lock", + "source": "ghidra-high-symbol", + "detail": "The decompiler marks this parameter type as locked." + } + ], + "decompiler_artifacts": [ + "recovered-signature", + "register-or-stack-storage" + ] + } + ], + "jump_tables": [], + "pseudocode": { + "classification": "decompiler-generated-non-source", + "compilable": false + }, + "decompiler_artifacts": [ + "recovered-signature", + "register-and-stack-variables", + "compiler-generated-control-flow", + "pointer-arithmetic", + "pseudocode" + ], + "limitations": [ + "Types and calling conventions are Ghidra decompiler observations, not source declarations.", + "Register variables, compiler-generated blocks, and pointer arithmetic remain decompiler artifacts.", + "Pseudocode is neither original source nor guaranteed to compile." + ] + }, + "native_value_flow": { + "available": true, + "provenance": "ghidra-high-pcode", + "operations": [ + { + "id": "0x101134#20", + "address": "0x101134", + "sequence": 20, + "opcode": "INT_SLESS", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "b" + } + ], + "output": { + "kind": "unique", + "size_bytes": 1, + "location": "unique:0x25f00", + "constant_hex": null + } + }, + { + "id": "0x101134#21", + "address": "0x101134", + "sequence": 21, + "opcode": "CBRANCH", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "address", + "size_bytes": 1, + "location": "0x101145", + "constant_hex": null + }, + { + "kind": "unique", + "size_bytes": 1, + "location": "unique:0x25f00", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x10113e#223", + "address": "0x10113e", + "sequence": 223, + "opcode": "INT_MULT", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "7" + } + ], + "output": { + "kind": "unique", + "size_bytes": 4, + "location": "unique:0x10000014", + "constant_hex": null + } + }, + { + "id": "0x101140#82", + "address": "0x101140", + "sequence": 82, + "opcode": "INT_ADD", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "unique", + "size_bytes": 4, + "location": "unique:0x10000014", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "d" + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x101143#90", + "address": "0x101143", + "sequence": 90, + "opcode": "BRANCH", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "address", + "size_bytes": 1, + "location": "0x10114b", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x101148#104", + "address": "0x101148", + "sequence": 104, + "opcode": "INT_ADD", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "fffffffb" + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x10114b#218", + "address": "0x10114b", + "sequence": 218, + "opcode": "MULTIEQUAL", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + }, + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x10114c#97", + "address": "0x10114c", + "sequence": 97, + "opcode": "RETURN", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "constant", + "size_bytes": 8, + "location": null, + "constant_hex": "0" + }, + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x10114c#178", + "address": "0x10114c", + "sequence": 178, + "opcode": "COPY", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + } + ], + "def_use": [ + { + "definition": "0x101134#20", + "use": "0x101134#21", + "input_index": 1 + }, + { + "definition": "0x10113e#223", + "use": "0x101140#82", + "input_index": 0 + }, + { + "definition": "0x101140#82", + "use": "0x10114b#218", + "input_index": 0 + }, + { + "definition": "0x101148#104", + "use": "0x10114b#218", + "input_index": 1 + }, + { + "definition": "0x10114c#178", + "use": "0x10114c#97", + "input_index": 1 + }, + { + "definition": "0x10114b#218", + "use": "0x10114c#178", + "input_index": 0 + } + ], + "parameters": [ + { + "ordinal": 0, + "name": "x", + "data_type": "/int" + } + ], + "parameter_uses": [ + { + "ordinal": 0, + "use": "0x101134#20", + "input_index": 0 + }, + { + "ordinal": 0, + "use": "0x10113e#223", + "input_index": 0 + }, + { + "ordinal": 0, + "use": "0x101148#104", + "input_index": 0 + } + ], + "effects": [ + { + "operation": "0x101134#21", + "kind": "conditional_branch", + "operand_input": null, + "value_input": 1 + } + ], + "truncated": false, + "omitted_operations_lower_bound": 0, + "known_omitted_inputs": 0, + "known_omitted_edges": 0, + "limitations": [ + "High p-code is decompiler-derived, not original source or runtime behavior. is_dead preserves the Java AST flag; decoded block members can retain that flag, so block_membership separately reports actual syntax-tree membership.", + "Def-use links do not cross function boundaries and may omit memory aliasing, call side effects, or unresolved indirect flow.", + "Memory read/write effects include stack and temporary memory operations; they do not identify persistent state or business meaning.", + "Operation, input, and def-use limits can truncate large functions; inspect truncation, omitted lower bounds, and known omitted counts before drawing conclusions.", + "Known omitted-edge counts cover links omitted from retained operations; omitted operations may contain additional uncounted links." + ] + }, + "facet_availability": { + "pseudocode": { + "available": true + }, + "comments": { + "available": true + }, + "callers": { + "available": true + }, + "callees": { + "available": true + }, + "references": { + "available": true + }, + "strings_names": { + "available": true + }, + "cfg": { + "available": true + }, + "assembly": { + "available": true + } + }, + "unresolved_calls": [], + "limitations": [ + "Unresolved computed or indirect flows without target addresses are not represented as reference edges.", + "Thunk and external classifications are Ghidra FunctionManager observations; they do not resolve targetless calls.", + "Pseudocode and assembly are Ghidra-specific representations, not original source or Hopper-equivalent text.", + "Synthetic Ghidra entry-point references without actionable memory sources are omitted." + ] + }, + "limitations": [], + "relationship_coverage": { + "status": "complete", + "diagnostics": [ + "Only resolved Ghidra call references are returned; unresolved computed or indirect calls remain unknown, while function classifications distinguish thunks and externals." + ] + } + }, + "normalized_result": { + "procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + }, + "signature": "int __stdcall hermes_probe(int x)", + "locals": [ + { + "description": "int x_local @ Stack[-0xc]:4", + "provenance": "ghidra-function-database" + } + ] + }, + "pseudocode": "\nint hermes_probe(int x)\n\n{\n int iVar1;\n int x_local;\n \n if (x < 0xb) {\n iVar1 = x + -5;\n }\n else {\n iVar1 = x * 7 + 0xd;\n }\n return iVar1;\n}\n\n", + "assembly": [ + "0x101129: PUSH RBP", + "0x10112a: MOV RBP, RSP", + "0x10112d: MOV dword ptr [RBP + -0x4], EDI", + "0x101130: CMP dword ptr [RBP + -0x4], 0xa", + "0x101134: JLE 0x00101145", + "0x101136: MOV EDX, dword ptr [RBP + -0x4]", + "0x101139: MOV EAX, EDX", + "0x10113b: SHL EAX, 0x3", + "0x10113e: SUB EAX, EDX", + "0x101140: ADD EAX, 0xd", + "0x101143: JMP 0x0010114b", + "0x101145: MOV EAX, dword ptr [RBP + -0x4]", + "0x101148: SUB EAX, 0x5", + "0x10114b: POP RBP", + "0x10114c: RET" + ], + "comments": [], + "callers": [ + { + "address": "0x10114d", + "name": "main", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x10114d", + "end": "0x10115c" + } + ], + "total_bytes": 16, + "span_bytes": 16, + "non_contiguous": false, + "contains_entry": true + } + } + ], + "callees": [], + "incoming_references": [ + { + "source_address": "0x101156", + "target_address": "0x101129", + "source_procedure": { + "address": "0x10114d", + "name": "main", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x10114d", + "end": "0x10115c" + } + ], + "total_bytes": 16, + "span_bytes": 16, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "UNCONDITIONAL_CALL", + "flow": true, + "call": true, + "jump": false, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x102028", + "target_address": "0x101129", + "source_procedure": null, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "INDIRECTION", + "flow": true, + "call": false, + "jump": false, + "data": false, + "read": false, + "write": false, + "indirect": true, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x1020c8", + "target_address": "0x101129", + "source_procedure": null, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "DATA", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + } + ], + "outgoing_references": [ + { + "source_address": "0x10112d", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "WRITE", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": false, + "write": true, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101130", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101134", + "target_address": "0x101145", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "CONDITIONAL_JUMP", + "flow": true, + "call": false, + "jump": true, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": true, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101136", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 1, + "external": false + } + }, + { + "source_address": "0x101143", + "target_address": "0x10114b", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "UNCONDITIONAL_JUMP", + "flow": true, + "call": false, + "jump": true, + "data": false, + "read": false, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 0, + "external": false + } + }, + { + "source_address": "0x101145", + "target_address": "stack:0xfffffffffffffff4", + "source_procedure": { + "address": "0x101129", + "name": "hermes_probe", + "classification": { + "external": false, + "thunk": false, + "thunk_target": null, + "provenance": "ghidra-function-manager" + }, + "body": { + "available": true, + "provenance": "ghidra-function-body-address-set", + "ranges": [ + { + "start": "0x101129", + "end": "0x10114c" + } + ], + "total_bytes": 36, + "span_bytes": 36, + "non_contiguous": false, + "contains_entry": true + } + }, + "target_procedure": null, + "kind": { + "available": true, + "provenance": "ghidra-reference-manager", + "type": "READ", + "flow": false, + "call": false, + "jump": false, + "data": true, + "read": true, + "write": false, + "indirect": false, + "computed": false, + "conditional": false, + "terminal": false, + "primary": true, + "operand_index": 1, + "external": false + } + } + ], + "unresolved_calls": [], + "referenced_strings": [], + "referenced_names": [ + { + "address": "0x101145", + "value": "LAB_00101145", + "source_address": "0x101134" + }, + { + "address": "0x10114b", + "value": "LAB_0010114b", + "source_address": "0x101143" + } + ], + "basic_blocks": [ + { + "start": "0x101129", + "end": "0x101136", + "successors": [ + "0x101136", + "0x101145" + ] + }, + { + "start": "0x101136", + "end": "0x101145", + "successors": [ + "0x10114b" + ] + }, + { + "start": "0x101145", + "end": "0x10114b", + "successors": [ + "0x10114b" + ] + }, + { + "start": "0x10114b", + "end": "0x10114d", + "successors": [] + } + ], + "native_api": { + "available": true, + "provenance": "ghidra-high-function", + "signature_source": "imported", + "calling_convention": "__stdcall", + "return_type": { + "ordinal": null, + "name": null, + "data_type": "int", + "size_bytes": 4, + "storage": "EAX:4", + "confidence": "high", + "evidence": [ + { + "kind": "signature-source", + "source": "ghidra-function-manager", + "detail": "Function signature source is imported." + }, + { + "kind": "decompiler-type", + "source": "ghidra-high-function", + "detail": "HighFunction recovered data type int." + } + ], + "decompiler_artifacts": [ + "recovered-signature", + "register-or-stack-storage" + ], + "role": "return" + }, + "parameters": [ + { + "ordinal": 0, + "name": "x", + "data_type": "int", + "size_bytes": 4, + "storage": "EDI:4", + "confidence": "high", + "evidence": [ + { + "kind": "signature-source", + "source": "ghidra-function-manager", + "detail": "Function signature source is imported." + }, + { + "kind": "decompiler-type", + "source": "ghidra-high-function", + "detail": "HighFunction recovered data type int." + }, + { + "kind": "type-lock", + "source": "ghidra-high-symbol", + "detail": "The decompiler marks this parameter type as locked." + } + ], + "decompiler_artifacts": [ + "recovered-signature", + "register-or-stack-storage" + ], + "role": "parameter" + } + ], + "jump_tables": [], + "pseudocode": { + "classification": "decompiler-generated-non-source", + "compilable": false + }, + "decompiler_artifacts": [ + "recovered-signature", + "register-and-stack-variables", + "compiler-generated-control-flow", + "pointer-arithmetic", + "pseudocode" + ], + "limitations": [ + "Types and calling conventions are Ghidra decompiler observations, not source declarations.", + "Register variables, compiler-generated blocks, and pointer arithmetic remain decompiler artifacts.", + "Pseudocode is neither original source nor guaranteed to compile." + ] + }, + "native_value_flow": { + "available": true, + "provenance": "ghidra-high-pcode", + "operations": [ + { + "id": "0x101134#20", + "address": "0x101134", + "sequence": 20, + "opcode": "INT_SLESS", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "b" + } + ], + "output": { + "kind": "unique", + "size_bytes": 1, + "location": "unique:0x25f00", + "constant_hex": null + } + }, + { + "id": "0x101134#21", + "address": "0x101134", + "sequence": 21, + "opcode": "CBRANCH", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "address", + "size_bytes": 1, + "location": "0x101145", + "constant_hex": null + }, + { + "kind": "unique", + "size_bytes": 1, + "location": "unique:0x25f00", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x10113e#223", + "address": "0x10113e", + "sequence": 223, + "opcode": "INT_MULT", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "7" + } + ], + "output": { + "kind": "unique", + "size_bytes": 4, + "location": "unique:0x10000014", + "constant_hex": null + } + }, + { + "id": "0x101140#82", + "address": "0x101140", + "sequence": 82, + "opcode": "INT_ADD", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "unique", + "size_bytes": 4, + "location": "unique:0x10000014", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "d" + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x101143#90", + "address": "0x101143", + "sequence": 90, + "opcode": "BRANCH", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "address", + "size_bytes": 1, + "location": "0x10114b", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x101148#104", + "address": "0x101148", + "sequence": 104, + "opcode": "INT_ADD", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x38", + "constant_hex": null + }, + { + "kind": "constant", + "size_bytes": 4, + "location": null, + "constant_hex": "fffffffb" + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x10114b#218", + "address": "0x10114b", + "sequence": 218, + "opcode": "MULTIEQUAL", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + }, + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + }, + { + "id": "0x10114c#97", + "address": "0x10114c", + "sequence": 97, + "opcode": "RETURN", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "constant", + "size_bytes": 8, + "location": null, + "constant_hex": "0" + }, + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": null + }, + { + "id": "0x10114c#178", + "address": "0x10114c", + "sequence": 178, + "opcode": "COPY", + "is_dead": true, + "block_membership": "member", + "inputs": [ + { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + ], + "output": { + "kind": "register", + "size_bytes": 4, + "location": "register:0x0", + "constant_hex": null + } + } + ], + "def_use": [ + { + "definition": "0x101134#20", + "use": "0x101134#21", + "input_index": 1 + }, + { + "definition": "0x10113e#223", + "use": "0x101140#82", + "input_index": 0 + }, + { + "definition": "0x101140#82", + "use": "0x10114b#218", + "input_index": 0 + }, + { + "definition": "0x101148#104", + "use": "0x10114b#218", + "input_index": 1 + }, + { + "definition": "0x10114c#178", + "use": "0x10114c#97", + "input_index": 1 + }, + { + "definition": "0x10114b#218", + "use": "0x10114c#178", + "input_index": 0 + } + ], + "effects": [ + { + "operation": "0x101134#21", + "kind": "conditional_branch", + "operand_input": null, + "value_input": 1 + } + ], + "parameters": [ + { + "ordinal": 0, + "name": "x", + "data_type": "/int" + } + ], + "parameter_uses": [ + { + "ordinal": 0, + "use": "0x101134#20", + "input_index": 0 + }, + { + "ordinal": 0, + "use": "0x10113e#223", + "input_index": 0 + }, + { + "ordinal": 0, + "use": "0x101148#104", + "input_index": 0 + } + ], + "truncated": false, + "omitted_operations_lower_bound": 0, + "known_omitted_inputs": 0, + "known_omitted_edges": 0, + "limitations": [ + "High p-code is decompiler-derived, not original source or runtime behavior. is_dead preserves the Java AST flag; decoded block members can retain that flag, so block_membership separately reports actual syntax-tree membership.", + "Def-use links do not cross function boundaries and may omit memory aliasing, call side effects, or unresolved indirect flow.", + "Memory read/write effects include stack and temporary memory operations; they do not identify persistent state or business meaning.", + "Operation, input, and def-use limits can truncate large functions; inspect truncation, omitted lower bounds, and known omitted counts before drawing conclusions.", + "Known omitted-edge counts cover links omitted from retained operations; omitted operations may contain additional uncounted links." + ] + }, + "facet_availability": { + "pseudocode": { + "available": true + }, + "assembly": { + "available": true + }, + "comments": { + "available": true + }, + "callers": { + "available": true + }, + "callees": { + "available": true + }, + "references": { + "available": true + }, + "strings_names": { + "available": true + }, + "cfg": { + "available": true + } + }, + "limitations": [ + "Unresolved computed or indirect flows without target addresses are not represented as reference edges.", + "Thunk and external classifications are Ghidra FunctionManager observations; they do not resolve targetless calls.", + "Pseudocode and assembly are Ghidra-specific representations, not original source or Hopper-equivalent text.", + "Synthetic Ghidra entry-point references without actionable memory sources are omitted." + ] + }, + "confidence": "observed", + "authority": "shipped-artifact", + "environment": null, + "limitations": [ + "The session serves operations only after Ghidra reports default auto-analysis complete; incomplete analysis does not expose partial results.", + "The imported Program and temporary project are ephemeral and deleted on close. Annotation operations edit session database metadata; original executable bytes are never written.", + "Cancelling an active Ghidra request terminates its ephemeral database and discards session annotations. The selected target remains open; the next provider query imports the original artifact again.", + "Default-space addresses use lowercase 0x-prefixed hexadecimal; other address spaces use :0x.", + "References cover the complete Ghidra function-body AddressSet and exact entry. Dossier incoming edges omit sources owned by that function; procedure_references also retains those internal edges.", + "The dossier combines Ghidra FunctionManager, Listing, ReferenceManager, BasicBlockModel, and decompiler observations; provider-specific pseudocode and assembly are not cross-provider text invariants.", + "Resolved reference metadata identifies computed, indirect, external, call, jump, and data edges; unresolved targetless flows remain unknown, and function classifications distinguish thunks and externals.", + "Synthetic Ghidra entry-point references without actionable memory sources are omitted.", + "The Java bridge serializes one function request per Program and lets each decompilation run until it completes or the caller cancels." + ], + "relationship_coverage": { + "status": "complete", + "diagnostics": [ + "Only resolved Ghidra call references are returned; unresolved computed or indirect calls remain unknown, while function classifications distinguish thunks and externals." + ] + }, + "locations": [], + "evidence_links": [] +} \ No newline at end of file