keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.31k stars 459 forks source link

keystone failing at endbr64 instruction #541

Open vm2p opened 2 years ago

vm2p commented 2 years ago

Hello,

I'm currently using keystone as part of a project where binary executables are being analyzed. However, keystone fails when it encounters an "endbr64" opcode, failing with

File "/usr/local/lib/python3.10/dist-packages/keystone_engine-0.9.2-py3.10.egg/keystone/keystone.py", line 213, in asm
    raise KsError(errno, stat_count.value)
keystone.keystone.KsError: Invalid mnemonic (KS_ERR_ASM_MNEMONICFAIL)

Is it a feature not supported by keystone yet? Is there any way to avoid this error?

Thank you very much for your help.