Master's thesis
Awards: Dean's Award for an Outstanding Final Thesis

Decompiling Binaries into LLVM IR Using McSema and Dyninst

Bc. Lukáš Korenčik
Abstract

Existuje veľa nástrojov, ktoré pracujú s LLVM bitkódom. Na použitie týchto nájstrov je potrebný buď zdrojový kód (pomocou kompilátoru je možné získať LLVM bitkód) alebo samotný LLVM bitkód. Niekedy však sú k dispozícii len skompilované binárne súbory a neexistuje žiaden dobre definovaný postup ako získať LLVM bitkód z binárky. McSema je nástroj, ktorý prekladá skompilované binárky do LLVM bitkódu …more

Abstract

There are many tools that operate on LLVM bitcode. To use these tools, LLVM bitcode or original source code are required (LLVM bitcode can be obtained from the source code by a compiler). Sometimes however, only already compiled binaries are available - there is no standard and well-defined process to obtain LLVM bitcode from a binary. McSema is a tool that translates binaries into LLVM bitcode; it …more

Thesis description
McSema is a translator from x86/amd64 binary code into LLVM IR. Unfortunately, it requires proprietary disassemblers and/or binary analysis tools to work. These tools are used to extract information from binaries in a form that allows McSema to translate the binaries into the higher-level LLVM bitcode. The external tools are combined into a so-called ‘frontend’ which processes the binary executable and outputs metadata suitable for consumption by McSema. The goal of this thesis is to use open-source tools (primarily Dyninst) to implement one such frontend for McSema, which would make it possible to lift amd64 ELF binaries, that were originally programs written in C language using an entirely open-source toolchain.
The thesis has been checked:
7/6/2019 01:09, RNDr. Petr Ročkai, Ph.D., UČO 139761
Language used
English English
Defence date
20/6/2019
The thesis was defended successfully

Supervisor

RNDr. Petr Ročkai, Ph.D., UČO 139761
KPSK FI MU

Reader

RNDr. Marek Chalupa, Ph.D.
KTP FI MU

Masaryk University Faculty of Informatics
Programme
Informatics

Theses on a related topic

List of theses with an identical keyword.

  • Přidání souboru

    Soubor nebo složku lze nahrát pomocí tlačítka Přidat.
  • Další operace se soubory

    Podrobnosti lze zjistit označením příslušného řádku.
  • Pohled pro experty

    Pro častou práci je možné zvolit režim Více možností.
  • Vyhledávání souborů

    Vyhledávaný výraz můžete zadat přímo do adresního řádku.
  • Rychlý přístup k souborům

    Pomocí funkce Nedávné je možné se rychle vrátit k právě prohlíženým souborům. Oblíbené soubory je také možné označit Hvězdičkou.