# uEmu | Tiny Cute Emulator Plugin For IDA Based On Unicorn

**URL:** <https://onehack.st/t/uemu-tiny-cute-emulator-plugin-for-ida-based-on-unicorn/174608>\
**Category:** Tools & Scripts\
**Tags:** learning, tools\
**Created:** [March 7, 2021, 1:46pm UTC](https://onehack.st/t/uemu-tiny-cute-emulator-plugin-for-ida-based-on-unicorn/174608 "2021-03-07T13:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [March 7, 2021, 1:46pm UTC](https://onehack.st/t/uemu-tiny-cute-emulator-plugin-for-ida-based-on-unicorn/174608/1 "2021-03-07T13:46:52Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/2/3/23e709943857baa86d699bb63b1320ef037a89ea.png)

**uEmu** is a tiny cute emulator plugin for IDA based on unicorn engine.

Supports following architectures out of the box: **x86** , **x64** , **ARM** , **ARM64** , **MIPS** , **MIPS64**

**What is it GOOD for?**

- Emulate bare metal code (bootloaders, embedded firmware etc)
- Emulate standalone functions

**What is it BAD for?**

- Emulate complex OS code (dynamic libraries, processes etc)
- Emulate code with many syscalls

**What can be improved?**

- Find a way to emulate vendor specific register access (like `MSR S3_x, X0` for ARM64)
- Add more registers to track

**Installation**

- `brew install unicorn` to install Unicorn binaries
- `pip install unicorn` to install Unicorn python bindings
- Use `File / Script file...` or `ALT+F7` in IDA to load **uEmu.py**

Optionally **uEmu** can be loaded automatically as IDA plugin. In this case put it into [IDA]/Plugins folder and change `USE_AS_SCRIPT` to `False` inside **uEmu.py**

**Note:** on Windows you might need to add IDA Pro Qt5 path

```auto
import sys
sys.path.append('D:\Soft\IDA Pro 7.x\python\3\PyQt5')

```

## GitHub:

> **[GitHub - alexhude/uEmu: Tiny cute emulator plugin for IDA based on...](https://github.com/alexhude/uEmu)**
>
> Tiny cute emulator plugin for IDA based on unicorn.
