public class

SimpleCEmulator

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.emulator.SimpleCEmulator

Class Overview

Simple emulator for ICMethod (JEB's AST). Originally implemented to be used with MarsAnalyticaTracerPlugin.

This emulator relies on a minimalist CFG implementation (see CFG), and hence has the same limitations (in particular switch and do-while statements are not emulated).

Summary

Public Constructors
SimpleCEmulator()
Public Methods
EmulatorLog emulate(ICMethod method, EmulatorState inputState)
Emulate the given method using the given input state.
ICIdentifier getBasePointer(ICOperation operation)
Get the base pointer in a pointer arithmetic operation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SimpleCEmulator ()

Public Methods

public EmulatorLog emulate (ICMethod method, EmulatorState inputState)

Emulate the given method using the given input state.

Returns
  • log of the emulation

public ICIdentifier getBasePointer (ICOperation operation)

Get the base pointer in a pointer arithmetic operation. Simple check for the first identifier in the operation.

Returns
  • base pointer, null if cannot be found