uglyoldbob / decompiler

A decompiler targeting c and similar languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

decompiler

A decompiler targeting c and similar languages.

Build Status

Open Source Helpers

https://sonarcloud.io/dashboard?id=uglyoldbob_decompiler

The goal of this program is to decompile an executable program to source code (represented by C), that can then be compiled back into a program that performs the same as the original.

Generated programs

decompile16

This is intended to target 16 bit executables.

decompile32

This is intended to target 32 bit executables.

decompile64

This is intended to target 64 bit executables.

Getting started

These are suggested steps for cloning and compiling. The steps vary depending on which version of git you are using. I am assuming you are using git from a command line of some variety.

git version 2.13 or newer

git clone --recurse-submodules https://github.com/uglyoldbob/decompiler.git

cd decompiler

git version 1.9 to 2.12

git clone --recursive https://github.com/uglyoldbob/decompiler.git

cd decompiler

git version 1.6.5 or newer

git clone --recursive https://github.com/uglyoldbob/decompiler.git

cd decompiler

older git

git clone https://github.com/uglyoldbob/decompiler.git

cd decompiler

git submodule update --init --recursive

Building

mkdir build

cd build

../configure

make

Windows


Install msys2 (https://www.msys2.org/)

Open msys2 msys from start menu

pacman -S mingw-w64-x86_64-gcc

pacman -S autoconf

pacman -S automake

pacman -S make

pacman -S libtool

Close msys2 and open msys mingw64

Clone the repository and browse to it.

Create a build folder

Create a udis86/build/m4 folder

In the udis86 directory, run autoreconf --force -v --install

Change to the build folder

Run ../configure

Run make

Reference materials:

Books

Dang, Bruce, et al. Practical Reverse Engineering: x86, x64, ARM, Windows Kernel, Reversing Tools, and Obfuscation. John Wiley & Sons, 2014. ISBN 978-1-118-78731-1

About

A decompiler targeting c and similar languages.

License:MIT License


Languages

Language:C++ 68.0%Language:Shell 18.1%Language:M4 6.9%Language:Rust 4.3%Language:Makefile 2.1%Language:C 0.7%Language:GDB 0.0%