Header menu logo B2R2

IRegisterFactory Type

Provides a platform-agnostic interface for accessing register information.

Instance members

Instance member Description

this.FramePointer

Full Usage: this.FramePointer

Returns: RegisterID option
Modifiers: abstract

Return a frame pointer register for a given BinHandle.

Returns: RegisterID option

this.GetAllRegStrings

Full Usage: this.GetAllRegStrings

Returns: string[]
Modifiers: abstract

Return all register names.

Returns: string[]

this.GetAllRegVars

Full Usage: this.GetAllRegVars

Returns: Expr[]
Modifiers: abstract

Return all register expressions.

Returns: Expr[]

this.GetGeneralRegVars

Full Usage: this.GetGeneralRegVars

Returns: Expr[]
Modifiers: abstract

Return all general register expressions excluding FPU registers, vector registers, etc.

Returns: Expr[]

this.GetPseudoRegVar

Full Usage: this.GetPseudoRegVar

Parameters:
    id : RegisterID - Register ID.
    idx : int - Register index.

Returns: Expr Returns an IR expression of a pseudo-register.
Modifiers: abstract

Get pseudo register expression from a given register ID and an index.

id : RegisterID

Register ID.

idx : int

Register index.

Returns: Expr

Returns an IR expression of a pseudo-register.

this.GetRegString

Full Usage: this.GetRegString

Parameters:
Returns: string
Modifiers: abstract

Return a register string from a given RegisterID. Depending on the underlying architecture of the BinHandle, we may have a different string result.

arg0 : RegisterID
Returns: string

this.GetRegType

Full Usage: this.GetRegType

Parameters:
Returns: RegType
Modifiers: abstract

Return a RegType from a given RegisterID.

arg0 : RegisterID
Returns: RegType

this.GetRegVar

Full Usage: this.GetRegVar

Parameters:
    name : string - Register name.

Returns: Expr Returns an IR expression of a register.
Modifiers: abstract

Get register expression from a given register name.

name : string

Register name.

Returns: Expr

Returns an IR expression of a register.

this.GetRegVar

Full Usage: this.GetRegVar

Parameters:
Returns: Expr Returns an IR expression of a register.
Modifiers: abstract

Get register expression from a given register ID.

id : RegisterID

Register ID.

Returns: Expr

Returns an IR expression of a register.

this.GetRegisterID

Full Usage: this.GetRegisterID

Parameters:
    name : string

Returns: RegisterID
Modifiers: abstract

Return RegisterID from a given register string. Depending on the underlying architecture of the BinHandle, we may have different RegisterID.

name : string
Returns: RegisterID

this.GetRegisterID

Full Usage: this.GetRegisterID

Parameters:
Returns: RegisterID
Modifiers: abstract

Return RegisterID from a given RegExpr.

expr : Expr
Returns: RegisterID

this.GetRegisterIDAliases

Full Usage: this.GetRegisterIDAliases

Parameters:
Returns: RegisterID[]
Modifiers: abstract

Return an array of aliases of a given register based on the current architecture of BinHandle.

arg0 : RegisterID
Returns: RegisterID[]

this.IsFramePointer

Full Usage: this.IsFramePointer

Parameters:
Returns: bool
Modifiers: abstract

Check if the given RegisterID represents a frame pointer.

arg0 : RegisterID
Returns: bool

this.IsProgramCounter

Full Usage: this.IsProgramCounter

Parameters:
Returns: bool
Modifiers: abstract

Check if the given RegisterID represents PC.

arg0 : RegisterID
Returns: bool

this.IsStackPointer

Full Usage: this.IsStackPointer

Parameters:
Returns: bool
Modifiers: abstract

Check if the given RegisterID represents a stack pointer.

arg0 : RegisterID
Returns: bool

this.ProgramCounter

Full Usage: this.ProgramCounter

Returns: RegisterID
Modifiers: abstract

Return a program counter register for a given BinHandle.

Returns: RegisterID

this.StackPointer

Full Usage: this.StackPointer

Returns: RegisterID option
Modifiers: abstract

Return a stack pointer register for a given BinHandle.

Returns: RegisterID option

Type something to start searching.