disassembler

package
v0.0.4-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(startPC uint64, endPC uint64) ([]proc.AsmInstruction, error)

func GetDestPC

func GetDestPC(inst proc.AsmInstruction) (uintptr, error)

func GetEpilogue

func GetEpilogue(instructions []proc.AsmInstruction) []proc.AsmInstruction

func GetFirstInstructionWithCond

func GetFirstInstructionWithCond(instructions []proc.AsmInstruction, filter func(inst *x86Inst) bool) (proc.AsmInstruction, int, bool)

func GetFunctionPage

func GetFunctionPage(entry, end uint64) []byte

use by segment level

func GetMutableInterval

func GetMutableInterval(fInsts []proc.AsmInstruction) (mutStart, mutEnd uint64, err error)

GetMutableInterval will return a interval [mutStart, mutEnd), where all instruction in this interval is mutable NOTE: mutStart is inclusive, mutEnd is exclusive, namely [mutStart, mutEnd)

func GetOriginalRegBackup

func GetOriginalRegBackup(epiInsts []proc.AsmInstruction) (regBackup []byte, regRestore []byte)

read from internal mem

func IsDirectCall

func IsDirectCall(i *x86Inst) bool

func IsDirectJump

func IsDirectJump(inst *x86Inst) bool

func MakeSliceFromPointer

func MakeSliceFromPointer(p uint64, length int) []byte

use by instruction level

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL