# LOHRE: Execution-Grounded Type Recovery via LLM-Orchestrated Hybrid Analysis

DevFeed: [LOHRE: Execution-Grounded Type Recovery via LLM-Orchestrated Hybrid Analysis](<https://devfeed.tech/articles/lohre-execution-grounded-type-recovery-via-llm-orchestrated-hybrid-analysis-131700.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14946>)

Author: Hao Jiang, Yujie Yang, Tao Li, Chenhui Cui, Liangfeng Xu, Chengjie Liu, Weiping Wen, Rubing Huang, Tsong Yueh Chen

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [code analysis](<https://devfeed.tech/topics/code-analysis.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [execution](<https://devfeed.tech/tags/execution.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [llm](<https://devfeed.tech/tags/llm.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [type](<https://devfeed.tech/tags/type.md>)

## AI overview

LOHRE recovers user-defined type layouts in stripped binaries by treating candidate layouts as hypotheses and testing them through paired dynamic slice emulation on baseline and mutated inputs. It compresses execution traces into an execution-depth difference and field-use summary, while a cross-function knowledge base shares compatible hypotheses and field confidence scores. Across RealType's four optimization levels, structural accuracy averaged 57.85%; on Windows RPC it was 35.6%, outperforming the evaluated static baselines. Removing dynamic validation lowered accuracy to 19.28% and 9.2%, respectively; removing the cross-function knowledge base lowered it to 41.03% and 10.0%. Using full traces instead of compressed feedback reduced accuracy and raised token use 3.7-fold and runtime 3.0-fold.

## Source excerpt

arXiv:2611.14946v1 Announce Type: new Abstract: Documenting stripped binary functions for security analysis requires recovering function interfaces and user-defined type (UDT) layouts from machine code. Existing large language model (LLM)-based methods face two limitations: they lack execution-based validation to detect inferred UDTs inconsistent with actual memory layouts, and may overlook evidence about shared UDTs across functions without direct call relationships. We present LLM-Orchestrated Hybrid Reverse Engineering (LOHRE), a framework that treats inferred UDTs as falsifiable hypotheses and tests them against program execution. LOHRE uses a hypothesize-validate-refine loop to test candidate layouts through paired dynamic slice emulation of baseline and mutated inputs. To reduce the cost of processing lengthy execution histories, the Execution-Depth Heuristic (EDH) compresses paired traces into an execution-depth difference and a summary of the tested field's observed uses. A cross-function knowledge base aggregates compatible UDT hypotheses and field-level confidence scores to guide testing and hypothesis refinement. We evaluate LOHRE on RealType at four optimization levels and a Windows remote procedure call (RPC) dataset. LOHRE achieves an average UDT Structural accuracy of 57.85% across RealType's four optimization levels and 35.6% on Windows RPC, outperforming the evaluated static baselines. Disabling dynamic validation reduces accuracy to 19.28% on RealType and 9.2% on Windows RPC. Removing the cross-function knowledge base reduces accuracy to 41.03% on RealType and 10.0% on Windows RPC. Replacing EDH's compressed feedback with full execution traces reduces recovery accuracy while increasing token use by 3.7 times and runtime by 3.0 times. These results indicate that execution-based validation, compact feedback, and cross-function evidence contribute to accurate and efficient UDT recovery.