GithubHelp home page GithubHelp logo

doytsujin / anvill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lifting-bits/anvill

0.0 1.0 0.0 480 KB

ANVILL forges beautiful LLVM bitcode out of raw machine code

License: GNU Affero General Public License v3.0

CMake 2.64% C++ 72.89% Python 24.09% Dockerfile 0.38%

anvill's Introduction

ANVILL Decompiler Toolchain

This directory contains code that implements simple decompiler primitives using Remill. The goal of these components is to produce high quality bitcode, which can then be further decompiled to C (via Clang ASTs) using Rellic.

We define "high quality bitcode" as being similar in form to what the Clang compiler would produce if it were executed on a semantically equivalent C function.

License

All code in this directory and all subdirectories is subject to the AGPL v3 license. The details of that license can be found in LICENSE.

Building

Note: Anvill requires at least LLVM 9.

To build via Docker run, specify the architecture, base Ubuntu image and LLVM version. For example, to build Anvill linking against LLVM 9 on Ubuntu 20.04 on AMD64 do:

ARCH=amd64; DIST=ubuntu20.04; LLVM=900; \
   docker build . \
   -t anvill-llvm${LLVM}-${DIST}-${ARCH} \
   -f Dockerfile \
   --build-arg DISTRO_BASE=${DIST} \
   --build-arg ARCH=${ARCH} \
   --build-arg LLVM_VERSION=${LLVM}

anvill-decompile-json

anvill-decompile-json is a specification-based decompiler. That is, this tool will decompile machine code into high-quality bitcode given a specification describing the input and output locations and types of compiled functions, as well as type and location information about any of their dependencies.

anvill-specify-json

anvill-specify-json is a tool that produces specifications for all functions contained in an LLVM bitcode module. The purpose of this tool is to enable the creation of a database of specifications for commonly used, often externally- defined functions in binaries (e.g. libc, libc++, libstdc++) in binaries lifted by McSema.

This tool also exists for enabling function declarations for binary code to be written in C or C++, and then translated down into the specification form within a decompiler toolchain.

Finally, this tool exists to enable round-trip testing of LLVM's ISEL lowering and code generation for arbitrary functions.

anvill's People

Contributors

aaronyoo avatar artemdinaburg avatar azeezah avatar kumarak avatar pgoodman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.