Skip to content
No description, website, or topics provided.
C C++ Roff Other
Branch: master
Clone or download
escape
Latest commit 2452b5d Dec 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include hb_dec initial commit Nov 22, 2019
tests hb_dec initial commit Nov 22, 2019
CMakeLists.txt hb_dec initial commit Nov 22, 2019
GNU GPL v2.txt License added Dec 2, 2019
README.md Small typos Dec 2, 2019
compat.h License added Dec 2, 2019
fetch_src.sh hb_dec initial commit Nov 22, 2019
harbour_decompiler.cpp License added Dec 2, 2019
harbour_decompiler.h License added Dec 2, 2019
harbour_helper.cpp even more typos Dec 2, 2019
harbour_helper.h License added Dec 2, 2019
hb_dec.cpp License added Dec 2, 2019
pe_helper.cpp License added Dec 2, 2019
pe_helper.h License added Dec 2, 2019
writer.cpp License added Dec 2, 2019
writer.h License added Dec 2, 2019

README.md

Simple Harbour decompiler: hb_dec

Descrption

Simple Harbour decompiler hb_dec finds, loads and prints the humanized version of Harbour opcodes from compiled Harbour script. Helped us with reverse engeneering compiled Harbour scripts.

Not all opcodes are implemented (60 of 180 but it covered our needs).

Was tested on harbour binaries compiled by Borland C compiler and MINGW.

3rdparty libs

I took some files from https://github.com/harbour/core to know harbour specific structures, constants... Same for parsing PE's https://github.com/wine-mirror/wine. Also i used memmem.c from https://github.com/git/git for windows compatibility.

Build instructions

Use cmake to build: mkdir build; cd build; cmake ..; make

Worked fine on Linux, but code is also Windows friendly (checked with i686-w64-mingw32-c++ (GCC) 7.3-win32 20180312)

Additional information

You can’t perform that action at this time.