Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.23 KB

disassemble_len.md

File metadata and controls

43 lines (24 loc) · 1.23 KB
description
Description of the 'disassemble_len' function in HyperDbg Scripts

disassemble_len

Function

disassemble_len

Syntax

disassemble_len( Expression );

Parameters

[Expression (Address)]

A MASM-like expression to evaluate which is the address of the target location to return instruction length.

Description

Returns the length of the instruction (Length Disassembler Engine) at the target Address using a 64-bit assembler.

Return value

If the address is valid, returns the length (byte) of one instruction at the target address; otherwise, it returns 0.

Examples

InstrLength = disassemble_len(@rip + 10);

Adds 0x10 to the rip register and returns the instruction length result into the InstrLength variable.

Remarks

This function visits the memory as a 64-bit assembler. You can use disassemble_len32 for the 32-bit version of this function.

Related

disassemble_len32