justinstenning / SharpDisasm

SharpDisasm - x86 / x86-64 disassembler for .NET
https://www.nuget.org/packages/SharpDisasm
Other
212 stars 39 forks source link

Resolve rip relatives #11

Closed Symbai closed 6 years ago

Symbai commented 6 years ago

Possible to add this feature?

justinstenning commented 6 years ago

Can you please provide an example of what you would be expecting (input + output).

Symbai commented 6 years ago

Input 64bit with code starting at 0x7FF648E4A9C5 : 48 8B 0D 1C ED 01 00

currently produces: mov rcx, [rip+0x1ed1c]

with resolving rip relatives the output will be: mov rcx,[0x7FF648E696E8]

In the CLI we cannot enter a start address so you would have to do this in code.