EFACT: an External Function Auto-Completion Tool to Strengthen Static Binary Lifting
Yilei Zhang, Haoyu Liao, Zekun Wang, Bo Huang, Jianmei Guo

TL;DR
EFACT is a lightweight tool that significantly improves the recovery of external function prototypes, especially mangled C++ functions, enhancing static binary lifting accuracy and supporting cross-ISA translation.
Contribution
EFACT introduces a novel algorithm for better mangled external function prototype recovery and integrates as a plugin to improve static binary rewriting frameworks.
Findings
Outperforms RetDec and McSema in mangled EXF recovery by over 96%.
Increases correct translation of benchmarks by 36.7% and 93.6% in cross-ISA scenarios.
Addresses challenges in static binary translation for C++ and cross-ISA support.
Abstract
Static binary lifting is essential in binary rewriting frameworks. Existing tools overlook the impact of External Function Completion (EXFC) in static binary lifting. EXFC recovers the prototypes of External Functions (EXFs, functions defined in standard shared libraries) using only the function symbols available. Incorrect EXFC can misinterpret the source binary, or cause memory overflows in static binary translation, which eventually results in program crashes. Notably, existing tools struggle to recover the prototypes of mangled EXFs originating from binaries compiled from C++. Moreover, they require time-consuming manual processing to support new libraries. This paper presents EFACT, an External Function Auto-Completion Tool for static binary lifting. Our EXF recovery algorithm better recovers the prototypes of mangled EXFs, particularly addressing the template specialization…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsManufacturing Process and Optimization · VLSI and FPGA Design Techniques
