Skip to content

kriw/decc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decc

x86, x64 native code mini decompiler that decompile to pseudocode like C (TODO: support for x64 archtecture)

Usage

$ ./run.sh target_binary
$ ./run.sh examples/addMult/a.out
main() {
__x86.get_pc_thunk.ax();
local_0x10 = 0x1;
local_0xc = 0x2;
local_0x8 = (local_0xc + local_0x10);
local_0x4 = (local_0xc * local_0x8);
return 0x0;

}
$  

Features

  • Written in OCaml
  • Simple implementation
  • Using objdump as a frontend (disassembler).

TODO

  • Support for x64 architecture
  • Adding global variables
  • Converting a = a + 1 to a += 1
  • Adding size information to variables
  • Eliminating unnecessary parens

About

Minimal x86 native decompiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published