diff --git a/src/qbindiff/loader/backend/binexport.py b/src/qbindiff/loader/backend/binexport.py index 92930be..255342e 100644 --- a/src/qbindiff/loader/backend/binexport.py +++ b/src/qbindiff/loader/backend/binexport.py @@ -65,7 +65,7 @@ def capstone_context(arch, mode): context.detail = True return context - if binexport_arch == "x86-32": + if binexport_arch == "x86-32" or binexport_arch == "x86": return capstone_context(capstone.CS_ARCH_X86, capstone.CS_MODE_32 | mode) elif binexport_arch == "x86-64": return capstone_context(capstone.CS_ARCH_X86, capstone.CS_MODE_64 | mode) @@ -313,7 +313,7 @@ def _disassemble( capstone_mode = 0 # No need to guess the context for these arch - if arch in ("x86", "x86-64", "MIPS-32", "MIPS-64", "ARM-64"): + if arch in ("x86", "x86-32", "x86-64", "MIPS-32", "MIPS-64", "ARM-64"): pass # For arm thumb use appropriate context guessing heuristics