Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
bnry
switch
utils
.gitignore
LICENSE
README.md
__init__.py
engine.py
example.py

README.md

DeSW

Just a simple De-switcher.

Uhhhmmm

First of all, this project was not concieved to be used alone.

How it works

The idea is this: *Apply Lief on the original PE

*dissasemble the code

*detect switch

*patch de instructions, and the tables

*hook where the switch was to a new area, where we assemble several cmp/jxx which emulates the switch

Input output

As input the module takes the code and the relocs, and as output you should get the code and relocs, but modified

This module uses Lief, Capstone and Keystone.

You can’t perform that action at this time.