idiom / stackstack

31 stars 4 forks source link

StackStack

Simple Unicorn emulation plugin. I originally developed the plugin as a quick way to emulate decoding strings obfuscated with ADVObfuscator or similar methods.

Installation

Requirements

Configuration

Example config file

{
    'loglevel': 'DEBUG',        \    
    'ext_yara_file': 'stackstack.yara',
    'bookmarks': True,
    'rename_func': False,    
    'check_update': True    
}

Modes

Decode

Emulates the current block or selected bytes and attempts to extract the decoded bytes.

Example of decode options

Bookmarks

To help navigate the binary, the plugin can create a bookmark at the location of each decoded string. If this is configured, bookmarks will be created with the prefix SSB:

Example of created bookmarks

Trace

For now add register values as a comment and at the end of the block emit the last val for each register.

Emulate

Emulate the current block and return the end state of all registers.

Scan

Scan for ADVObfuscated Strings or matches based on the passed yara rules.

Shortcut shift-s