ReF Decompile:重标记与函数调用增强的反编译
ReF Decompile: Relabeling and Function Call Enhanced Decompile
AI总结:
针对基于大语言模型的端到端反编译方法在处理二进制文件时丢失控制流结构和变量关键信息的问题,提出ReF Decompile方法,通过重标记和函数调用增强策略,在Humaneval-Decompile基准上实现61.43%的SOTA性能。
摘要:
反编译的目标是将编译后的低级代码(如汇编代码)转换回高级编程语言,以便在源代码不可用的场景下进行分析。该任务支持各种逆向工程应用,例如漏洞识别、恶意软件分析和遗留软件迁移。基于大型语言模型(LLMs)的端到端反编译方法凭借其固有特性,减少了对额外工具的依赖并最大限度地减少了人工干预。然而,先前的端到端方法在处理二进制文件时,往往会丢失重构控制流结构和变量所需的关键信息,导致难以准确恢复程序逻辑。为解决这些问题,我们提出了ReF Decompile方法,其包含以下创新点:(1)重标记策略将跳转目标地址替换为标签,保留控制流清晰度;(2)函数调用策略推断变量类型并从二进制文件中检索缺失的变量信息。在Humaneval-Decompile基准测试上的实验结果表明,ReF Decompile优于可比基线,达到了61.43%的最先进(SOTA)性能。
英文摘要:
The goal of decompilation is to convert compiled low-level code (e.g., assembly code) back into high-level programming languages, enabling analysis in scenarios where source code is unavailable. This task supports various reverse engineering applications, such as vulnerability identification, malware analysis, and legacy software migration. The end-to-end decompile method based on large langauge models (LLMs) reduces reliance on additional tools and minimizes manual intervention due to its inherent properties. However, previous end-to-end methods often lose critical information necessary for reconstructing control flow structures and variables when processing binary files, making it challenging to accurately recover the program's logic. To address these issues, we propose the \textbf{ReF Decompile} method, which incorporates the following innovations: (1) The Relabelling strategy replaces jump target addresses with labels, preserving control flow clarity. (2) The Function Call strategy infers variable types and retrieves missing variable information from binary files. Experimental results on the Humaneval-Decompile Benchmark demonstrate that ReF Decompile surpasses comparable baselines and achieves state-of-the-art (SOTA) performance of $61.43\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。