SharpDisasm
SharpDisasm copied to clipboard
SharpDisasm - x86 / x86-64 disassembler for .NET
[https://github.com/spazzarama/SharpDisasm/blob/ee3af3d8aaec755208aa6782aa0eae51fd90165b/SharpDisasm/Udis86/syn.cs](url) Line 130: ` Array.Copy(str, 0, u.asm_buf, u.asm_buf_fill, Math.Min(str.Length, avail)); ` Should be: `Array.Copy(str, 0, u.asm_buf, u.asm_buf_fill, Math.Min(str.Length, avail));` `u.asm_buf[u.asm_buf_fill + str.Length] = '\0';` With the null terminator added correctly,...
x64 Input: eb 02 90 90 eb 02 90 90 48 89 5c 24 08 Output: 0000000000000000 eb 02 jmp 0x4 0000000000000002 90 nop 0000000000000003 90 nop 0000000000000004 eb 02...
Interfacing Instruction class and introducing Instruction factories instead of using 'new Instruction()'
I need to create an extended instruction instead of SharpDisasm.Instruction. For this I need to inject an IInstructionFactory to the SharpDasm.Disassembler ctor. Furthermore changes are needed to support this.
I am disassembling with try catch something that may be valid opcodes or not (just whole memory of a program). For example I am hitting a debug assert at Udis86/Decode.cs...