Skip to main content
Tweeted twitter.com/StackReverseEng/status/848855990992818176
added 67 characters in body; edited title
Source Link
NirIzr
  • 11.8k
  • 1
  • 38
  • 87

How to get the raw disassembly line withwithout offset translations in IDAPython?

When I use GetDisasm()to get disassembly line, I find out that it will replaceshow some memory reference withreferences as a variable name. 

For example,   when raw assembly is:

mov %r15, 0x20b062(%rip)`

mov %r15, 0x20b062GetDisasm(%rip)returnsmov r15d, offset s1. So are's output may be:

mov r15d, offset s1

I was hoping there any waysis a way to get the raw instruction, rather than the modified one?

How to get the raw disassembly line with IDAPython?

When I use GetDisasm()to get disassembly line, I find out that it will replace some memory reference with a variable name. For example,  mov %r15, 0x20b062(%rip)returnsmov r15d, offset s1. So are there any ways to get the raw instruction, rather than the modified one?

How to get the disassembly line without offset translations in IDAPython?

When I use GetDisasm()to get disassembly line, I find out that it will show some memory references as a variable name. 

For example, when raw assembly is:

mov %r15, 0x20b062(%rip)`

GetDisasm()'s output may be:

mov r15d, offset s1

I was hoping there is a way to get the raw instruction, rather than the modified one?

Source Link
liubenxi
  • 115
  • 2
  • 7

How to get the raw disassembly line with IDAPython?

When I use GetDisasm()to get disassembly line, I find out that it will replace some memory reference with a variable name. For example, mov %r15, 0x20b062(%rip)returnsmov r15d, offset s1. So are there any ways to get the raw instruction, rather than the modified one?