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

find thumb instruction like the "ldaex/stlex" not disassemble #1352

Open
ajisky opened this issue Jan 24, 2019 · 3 comments
Open

find thumb instruction like the "ldaex/stlex" not disassemble #1352

ajisky opened this issue Jan 24, 2019 · 3 comments

Comments

@ajisky
Copy link

ajisky commented Jan 24, 2019

I find some thumb instruction not disassemble with the capstone engine, but they can run.
and use the gdb tool can disassemble.
machinecode is 0xCFEFE8D2, gdb know is "ldaex r12, [r2]"
machinecode is 0x1FE3E8C2, gdb know is "stlex r3, r1, [r2]"
machinecode is 0x3FEFE8D1, gdb know is "ldaex r3, [r1]"

@aquynh
Copy link
Collaborator

aquynh commented Jan 28, 2019

this will will be fixed in the next major update: #1319

@ajisky
Copy link
Author

ajisky commented Jan 29, 2019

ok, thanks you answer and expect your update, i' will test for my case. likes files "libc.so in android system version"

@aquynh
Copy link
Collaborator

aquynh commented Jun 3, 2019

these input are now handled with the latest code in the "next" branch.

$ cstool thumbv8 "d2 e8 ef cf c2 e8 e3 1f d1 e8 ef 3f"
 0  d2 e8 ef cf  ldaex	ip, [r2]
 4  c2 e8 e3 1f  stlex	r3, r1, [r2]
 8  d1 e8 ef 3f  ldaex	r3, [r1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants