RetDec plugin for IDA (Interactive Disassembler).
The plugin is compatible with the IDA 7.x versions.
The plugin does NOT work with IDA 6.x, or freeware version of IDA 7.0.
The plugin comes at both 32-bit and 64-bit address space variants (both are 64-bit binaries). I.e. it works in both ida and ida64.
At the moment, it can decompile the following architectures:
- 32-bit: Intel x86, ARM, MIPS, PIC32, and PowerPC.
- 64-bit: x86-64.
Currently, we officially support only Windows and Linux. It may be possible to build macOS version from the sources, but since we do not own a macOS version of IDA, we cannot create a pre-built package, or continually make sure the macOS build is not broken.
- Either download and unpack a pre-built package from the latest release, or build and install the RetDec IDA plugin by yourself (the process is described below).
- Follow the user guide (
user_guide.pdf) that is part of the downloaded package, or use the current version from this repository.
Note: These are requirements to build the RetDec IDA plugin, not to run it. See our User Guide for information on plugin installation, configuration, and use.
- A compiler supporting C++14
- On Windows, only Microsoft Visual C++ is supported (version >= Visual Studio 2015).
- CMake (version >= 3.6)
- IDA SDK (version == 7.0)
- Clone the repository:
git clone https://github.com/avast/retdec-idaplugin.git
- Linux:
cd retdec-idapluginmkdir build && cd buildcmake .. -DIDA_SDK_DIR=<path>makemake install(ifIDA_PATHwas set, see below)
- Windows:
- Open a command prompt (e.g.
C:\msys64\msys2_shell.cmdfrom MSYS2) cd retdec-idapluginmkdir build && cd buildcmake .. -DIDA_SDK_DIR=<path> -G<generator>cmake --build . --config Release -- -mcmake --build . --config Release --target install(ifIDA_PATHwas set, see below)- Alternatively, you can open
retdec-idaplugin.slngenerated bycmakein Visual Studio IDE.
- Open a command prompt (e.g.
You must pass the following parameters to cmake:
-DIDA_SDK_DIR=</path/to/idasdk>to tellcmakewhere the IDA SDK directory is located.- (Windows only)
-G<generator>is-G"Visual Studio 14 2015 Win64"for 64-bit build using Visual Studio 2015. Later versions of Visual Studio may be used. Only 64-bit build is supported.
You can pass the following additional parameters to cmake:
-DIDA_PATH=</path/to/ida>to tellcmakewhere to install the plugin. If specified, installation will copy plugin binaries intoIDA_PATH/plugins, and content ofscripts/idcdirectory intoIDA_PATH/idc. If not set, installation step does nothing.-DRETDEC_IDAPLUGIN_DOC=ONto enable theuser-guidetarget which generates the user guide document (disabled by default, the target needs to be explicitly invoked).
The User Guide in a PDF form is located in doc/user_guide/user_guide.pdf.
You can build your own guide by enabling and invoking the user-guide target:
cmake .. -DRETDEC_IDAPLUGIN_DOC=ON- Linux:
make user-guide - Windows:
cmake --build . --config Release --target user-guide - Requires LaTeX, LaTeX packages, and related tools.
- The resulting PDF will overwrite the original
user_guide.pdfindoc/user_guide.
Copyright (c) 2017 Avast Software, licensed under the MIT license. See the LICENSE file for more details.
RetDec IDA plugin uses third-party libraries or other resources listed, along with their licenses, in the LICENSE-THIRD-PARTY file.