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

it is impossible to convert ASM to LLVM IR to ASM for deobf #59

Open
fr0zenrain opened this issue Mar 17, 2017 · 0 comments
Open

it is impossible to convert ASM to LLVM IR to ASM for deobf #59

fr0zenrain opened this issue Mar 17, 2017 · 0 comments

Comments

@fr0zenrain
Copy link

convert asm to IR ,and finally compile IR with O2 to asm for deobfuscation,it is impossible?

i test a simple demo,but failed!

MCDirector: Using Triple: arm-unknown-unknown
MCDirector: Using CPU: generic
MCDirector: Using Features: +v6
Triple: arm-unknown-unknown
CPU: generic
Debug+Asserts/bin/fracture-cl> dec 0x4ec4
BB#0: derived from LLVM BB %"func_4ec4+0"
%R3<def,tied3> = STRD_POST %R11, %R12, %R3, %R0, 1024, pred:11, pred:%CPSR; mem:ST4 dbg::20164
%R10 = ANDrsi %R1, %R2, 226, pred:9, pred:%CPSR, opt:%noreg; dbg::20168
%R11<def,tied1> = STMDA_UPD %R11, pred:4, pred:%CPSR, %R4, %R5, %SP, %LR; mem:ST4 dbg::20172
%R4, %PC<def,tied2> = LDRBT_POST_IMM %PC, %noreg, 155445, pred:4, pred:%CPSR; mem:LD4 dbg::20176
LLVM ERROR: Cannot select: 0x7fc6ca80d8e0: i32,i32,ch = LDRBT_POST_IMM 0x7fc6ca80d7d0:1, 0x7fc6ca80d4a0, 0x7fc6ca80d5b0, 0x7fc6ca80d6c0, 0x7fc6ca80c6c0, 0x7fc6ca80d7d0<Mem:LD4> [ID=45] dbg::20176
0x7fc6ca80d4a0: i32,ch = CopyFromReg 0x7fc6ca80d280, 0x7fc6ca80d390 [ID=42] dbg::20176
0x7fc6ca80d390: i32 = Register %PC [ID=19]
0x7fc6ca80d5b0: f32,ch = CopyFromReg 0x7fc6ca80d4a0:1, 0x7fc6ca80c060 [ID=43] dbg::20176
0x7fc6ca80c060: f32 = Register %noreg [ID=12]
0x7fc6ca80d6c0: i32 = Constant<155445> [ID=20]
0x7fc6ca80c6c0: i32 = Constant<4> [ID=14]
0x7fc6ca80d7d0: i32,ch = CopyFromReg 0x7fc6ca80d5b0:1, 0x7fc6ca80a4a0 [ID=44] dbg::20176
0x7fc6ca80a4a0: i32 = Register %CPSR [ID=7]
In function: func_4ec4

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

1 participant