Property | Type | Description | |
---|---|---|---|
Address | ulong | ||
Architecture | ArchitectureMode | ||
CopyBinaryToInstruction | bool | ||
Translator | SharpDisasm.Translators.Translator | ||
Vendor | Vendor |
Method | Description | |
---|---|---|
Disassemble ( ) : IEnumerable |
Disassemble instructions and yield the result. Breaking out of the enumerator will prevent further instructions being disassembled.
|
|
Disassembler ( IAssemblyCode code, ArchitectureMode architecture, ulong address = 0x0, bool copyBinaryToInstruction = false, Vendor vendor = Vendor.Any ) : System |
Initializes a new instance of the Disassembler class.
|
|
Disassembler ( |
Prepares a new disassembler instance for the code located at the memory address provided. The instructions can then be disassembled with a call to Disassemble. The base address used to resolve relative addresses should be provided in address.
|
|
Disassembler ( byte code, ArchitectureMode architecture, ulong address = 0x0, bool copyBinaryToInstruction = false, Vendor vendor = Vendor.Any ) : System |
Prepares a new disassembler instance for the code provided. The instructions can then be disassembled with a call to Disassemble. The base address used to resolve relative addresses should be provided in address.
|
|
Dispose ( ) : void |
Dispose
|
|
NextInstruction ( ) : |
Decodes a single instruction and increments buffer position.
|
|
Reset ( ) : void |
Reset to beginning of the buffer
|
Method | Description | |
---|---|---|
InitUdis86 ( ) : void |
(Re)Initialise the udis86 disassembler
|
public Disassembler ( IAssemblyCode code, ArchitectureMode architecture, ulong address = 0x0, bool copyBinaryToInstruction = false, Vendor vendor = Vendor.Any ) : System | ||
code | IAssemblyCode | The code. |
architecture | ArchitectureMode | The architecture. |
address | ulong | The address. |
copyBinaryToInstruction | bool | if set to |
vendor | Vendor | The vendor. |
return | System |
public Disassembler ( |
||
codePtr | A pointer to memory to be disassembled. | |
codeLength | int | The maximum length to be disassembled. |
architecture | ArchitectureMode | The architecture of the code (e.g. 64-bit, 32-bit or 16-bit). |
address | ulong | The address of the first byte of code. This value is used to resolve relative addresses into absolute addresses while disassembling. |
copyBinaryToInstruction | bool | Keeps a copy of the binary code for the instruction. This will increase the memory usage for each instruction. This is necessary if planning on using the |
vendor | Vendor | What vendors to support for disassembly, default is Any. Other options are AMD or Intel. |
return | System |
public Disassembler ( byte code, ArchitectureMode architecture, ulong address = 0x0, bool copyBinaryToInstruction = false, Vendor vendor = Vendor.Any ) : System | ||
code | byte | The code to be disassembled |
architecture | ArchitectureMode | The target x86 instruction set architecture of the code (e.g. 64-bit, 32-bit or 16-bit). |
address | ulong | The address of the first byte of code. This value is used to resolve relative addresses into absolute addresses while disassembling. |
copyBinaryToInstruction | bool | Keeps a copy of the binary code for the instruction. This will increase the memory usage for each instruction. This is necessary if planning on using the |
vendor | Vendor | What vendor instructions to support during disassembly, default is Any. Other options are AMD or Intel. |
return | System |
public static SharpDisasm.Translators.Translator Translator | ||
return | SharpDisasm.Translators.Translator |