Voltar ao ranking

ergrelet/unlicense

Python

Dynamic unpacker and import fixer for Themida/WinLicense 2.x and 3.x.

unpackerthemidawinlicensewindowsdumppythonmalware-analysismalware-unpackerfridascylladotnet-assemblyportable-executable
Crescimento de estrelas
Estrelas
1.4k
Forks
258
Crescimento semanal
Issues
57
5001k
dez. de 2021jun. de 2023jan. de 2025jul. de 2026
ArtefatosPyPIpip install unlicense
README

Unlicense

GitHub release Minimum Python version CI status

A Python 3 tool to dynamically unpack executables protected with Themida/WinLicense 2.x and 3.x.

Warning: This tool will execute the target executable. Make sure to use this tool in a VM if you're unsure about what the target executable does.

Note: You need to use a 32-bit Python interpreter to dump 32-bit executables.

Features

  • Handles Themida/Winlicense 2.x and 3.x
  • Handles 32-bit and 64-bit PEs (EXEs and DLLs)
  • Handles 32-bit and 64-bit .NET assemblies (EXEs only)
  • Recovers the original entry point (OEP) automatically
  • Recovers the (obfuscated) import table automatically

Known Limitations

  • Doesn't handle .NET assembly DLLs
  • Doesn't produce runnable dumps in most cases
  • Resolving imports for 32-bit executables packed with Themida 2.x is pretty slow
  • Requires a valid license file to unpack WinLicense-protected executables that require license files to start

How To

Download

You can either download the PyInstaller-generated executables from the "Releases" section or fetch the project with git and install it with pip:

pip install git+https://github.com/ergrelet/unlicense.git

Use

If you don't want to deal the command-line interface (CLI) you can simply drag-and-drop the target binary on the appropriate (32-bit or 64-bit) unlicense executable (which is available in the "Releases" section).

Otherwise here's what the CLI looks like:

unlicense --help
NAME
    unlicense.exe - Unpack executables protected with Themida/WinLicense 2.x and 3.x

SYNOPSIS
    unlicense.exe PE_TO_DUMP <flags>

DESCRIPTION
    Unpack executables protected with Themida/WinLicense 2.x and 3.x

POSITIONAL ARGUMENTS
    PE_TO_DUMP
        Type: str

FLAGS
    --verbose=VERBOSE
        Type: bool
        Default: False
    --pause_on_oep=PAUSE_ON_OEP
        Type: bool
        Default: False
    --no_imports=NO_IMPORTS
        Type: bool
        Default: False
    --force_oep=FORCE_OEP
        Type: Optional[Optional]
        Default: None
    --target_version=TARGET_VERSION
        Type: Optional[Optional]
        Default: None
    --timeout=TIMEOUT
        Type: int
        Default: 10

NOTES
    You can also use flags syntax for POSITIONAL ARGUMENTS
Repositórios relacionados
horsicq/Detect-It-Easy

Program for determining types of files for Windows, Linux and MacOS.

JavaScriptnpmMIT Licensedebuggerdetect
ntinfo.biz
11.2k930
CodingGay/BlackDex

BlackDex is an Android unpack(dexdump) tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phone or emulator, you can unpack APK File in several seconds.

C++Apache License 2.0shelldump
6.4k1.3k
Bioruebe/UniExtract2

Universal Extractor 2 is a tool to extract files from any type of archive or installer.

AutoItGNU General Public License v2.0extractorfile-analysis
4.4k384
horsicq/DIE-engine

DIE engine

C++MIT Licensesignaturereverse-engineering
3.2k388
redballoonsecurity/ofrak

OFRAK: unpack, modify, and repack binaries.

PythonPyPIOtherctffirmware
ofrak.com
2.1k155
UnderminersTeam/UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)

C#GNU General Public License v3.0game-maker-studiodecompiler
underminersteam.github.io
2k345
lelinhtinh/de4js

JavaScript Deobfuscator and Unpacker

JavaScriptnpmMIT Licensedeobfuscatordeobfuscate
lelinhtinh.github.io/de4js/
1.6k362
NotPrab/.NET-Deobfuscator

Lists of .NET Deobfuscator and Unpacker (Open Source)

MIT Licensedotnetreverse-engineering
1.5k294
dscharrer/innoextract

A tool to unpack installers created by Inno Setup

C++Otherinno-setupc-plus-plus
constexpr.org/innoextract/
1.3k178
SychicBoy/NETReactorSlayer

An open source (GPLv3) deobfuscator and unpacker for Eziriz .NET Reactor

C#GNU General Public License v3.0deobfuscatordnlib
codestrikers.org
1.2k288
strazzere/android-unpacker

Android Unpacker presented at Defcon 22: Android Hacker Protection Level 0

CApache License 2.0android-unpackergdb
1.2k333
WithSecureLabs/python-exe-unpacker

A helper script for unpacking and decompiling EXEs compiled from python code.

PythonPyPIGNU General Public License v3.0counterceptunpacker
1k351