FoxDec: Formal x86-64 Decompilation
- 1. Virginia Tech
- 2. University of Manchester, UK
Description
We present FoxDec: an approach to C code decompilation that aims at producing sound and recompilable code. Formal methods are used during three phases of the decompilation process: control flow recovery, symbolic execution, and variable analysis. The use of formal methods minimizes the trusted code base and ensures soundness: the extracted C code behaves the same as the original binary. Soundness and recompilablity enable C code decompilation to be used in the contexts of binary patching, binary porting, binary analysis and binary improvement, with confidence that the recompiled code’s behavior is consistent with the original program. We demonstrate that FoxDec can be used to improve execution speed by recompiling a binary with different compiler options, to patch a memory leak with a code transformation tool, and to port a binary to a different architecture. FoxDec can also be leveraged to port a binary to run as a unikernel, a minimal and secure virtual machine usually requiring source access for porting.
Files
FoxDec.zip
Files
(2.0 MB)
Name | Size | Download all |
---|---|---|
md5:b4f9f7c669a143ea3403b35e2a17d5b5
|
2.0 MB | Preview Download |