Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@debian-armel:/tmp/squashfs-root/usr/bin# ./my_arm_bin
- Illegal instruction
- Warning: Cannot initialize dynamic strings
- arch arm
- binsz 44831825
- bintype elf
- bits 32
- canary false
- class ELF32
- crypto false
- endian little
- havecode true
- lang c
- linenum false
- lsyms false
- machine ARM
- maxopsz 16
- minopsz 1
- nx false
- os linux
- pcalign 0
- pic false
- relocs false
- rpath NONE
- static true
- stripped true
- subsys linux
- va true
- gef> x/20i $pc
- => 0x796a0: mov r11, #0
- 0x796a4: mov lr, #0
- 0x796a8: pop {r1} ; (ldr r1, [sp], #4)
- 0x796ac: mov r2, sp
- 0x796b0: push {r2} ; (str r2, [sp, #-4]!)
- 0x796b4: push {r0} ; (str r0, [sp, #-4]!)
- 0x796b8: ldr r12, [pc, #16] ; 0x796d0
- 0x796bc: push {r12} ; (str r12, [sp, #-4]!)
- 0x796c0: ldr r0, [pc, #12] ; 0x796d4
- 0x796c4: ldr r3, [pc, #12] ; 0x796d8
- 0x796c8: bl 0x4021a0
- 0x796cc: bl 0x401fa0
- 0x796d0: andeq r2, r12, #200, 2 ; 0x32
- 0x796d4: andeq r10, r1, r12, lsl #11
- 0x796d8: andeq r2, r12, #40, 2
- 0x796dc: ldr r3, [pc, #20] ; 0x796f8
- 0x796e0: ldr r2, [pc, #20] ; 0x796fc
- 0x796e4: add r3, pc, r3
- 0x796e8: ldr r2, [r3, r2]
- 0x796ec: cmp r2, #0
- gef>
- -> 0x796c8 bl 0x4021a0
- -> 0x4021a0 ldr pc, [pc, #-4] ; 0x4021a4
- gef> x/20i $pc
- => 0x20c1b30: push {r4, r5, r6, r7, lr}
- 0x20c1b34: sub sp, sp, #300 ; 0x12c
- 0x20c1b38: movw r12, #0
- 0x20c1b3c: mov r5, r3 --> Here is our illegal instruction
- 0x20c1b40: movt r12, #0
- 0x20c1b44: str r1, [sp, #4]
- 0x20c1b48: movw r1, #65336 ; 0xff38
- 0x20c1b4c: cmp r12, #0
- 0x20c1b50: ldr r3, [sp, #4]
- 0x20c1b54: str r2, [sp, #8]
- 0x20c1b58: ldrne r12, [r12]
- 0x20c1b5c: add r2, r3, #1
- 0x20c1b60: str r0, [sp, #12]
- 0x20c1b64: movw r3, #56376 ; 0xdc38
- 0x20c1b68: ldr r7, [sp, #8]
- 0x20c1b6c: movw r0, #3092 ; 0xc14
- 0x20c1b70: ldr lr, [sp, #328] ; 0x148
- 0x20c1b74: clzne r12, r12
- 0x20c1b78: movt r0, #685 ; 0x2ad
- 0x20c1b7c: movt r1, #827 ; 0x33b
Add Comment
Please, Sign In to add comment