Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disassembling of X86 32 bit not working properly #38

Open
murx- opened this issue Jun 12, 2019 · 0 comments
Open

Disassembling of X86 32 bit not working properly #38

murx- opened this issue Jun 12, 2019 · 0 comments
Assignees
Labels

Comments

@murx-
Copy link

murx- commented Jun 12, 2019

Disassembling of x86 32 bit binaries seems to be not working. Deen seems to use always 64 bit for disassembling.

Here is the expected result in capstone:

In [1]: from capstone import *                                                  

In [2]: CODE = b"MZ"                                                            

In [3]: md = Cs(CS_ARCH_X86, CS_MODE_32)                                        

In [4]: for i in md.disasm(CODE, 0x1000): 
   ...:     print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str)) 
   ...:                                                                         
0x1000:	dec	ebp
0x1001:	pop	edx

In [5]:  

However if i use deen and disassemble the string MZ as x86 it states the instruction as pop r10.

@murx- murx- changed the title Disassembler of X86 32 bit not working properly Disassembling of X86 32 bit not working properly Jun 12, 2019
@takeshixx takeshixx self-assigned this Sep 5, 2019
@takeshixx takeshixx added the bug label Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants