public interface

IBinaryPattern

com.pnfsoftware.jeb.core.units.code.asm.analyzer.IBinaryPattern
Known Indirect Subclasses

Class Overview

Definition of a binary pattern. The pattern can be masked. The basic verification routine does something like: checkedByte[i] == pattern[i] & mask[i] ?)

Summary

Public Methods
abstract byte[] getBinary()
Binary bytes.
abstract Object getExtra()
Get some extra data associated to this pattern.
abstract byte[] getMask()
Binary mask.
abstract int getProcessorMode()
Valid processor mode for this Binary Pattern.
abstract int getRealStartOffset()
The real start offset.
abstract boolean validate(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd)
Final validation.

Public Methods

public abstract byte[] getBinary ()

Binary bytes. Mandatory.

public abstract Object getExtra ()

Get some extra data associated to this pattern. Client specific.

Returns
  • optional data

public abstract byte[] getMask ()

Binary mask. Optional. If present, must have same length as getBinary().

public abstract int getProcessorMode ()

Valid processor mode for this Binary Pattern. Can be MODE_DEFAULT if valid in any mode.

public abstract int getRealStartOffset ()

The real start offset.

public abstract boolean validate (INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd)

Final validation. Optional method.