jtool disassembler

Used for discussing the various tools in the book as well as encouraging members to share tools

jtool disassembler

Postby in7egral » Sun Sep 25, 2016 8:59 am

Code: Select all
jtool --version
This is jtool v0.95.L, compiled on Aug 11 2015 08:17:39


And output on
Code: Select all
jtool -d ./dyld

Code: Select all
_mmap:
1fe1da40  PUSH   {r4,r5,r6,r7,lr}
1fe1da42  >ADD   R7, SP, #12; ..R7 = R13 (0x0) + 0xc = 0xc
ZZZ1fe1da44  STR.W
1fe1da48  SUB    SP, #12
1fe1da4a  MOV    R4, R1; ->R4 = 0x0
1fe1da4c  MOVW   R1, ; ->R1 = 0x6662
1fe1da50  MOVT   R1, ; ..R1 = R1 (0x6662) + 0x0 = 0x6662
1fe1da54  MOV    R6, R3; ->R6 = 0x0
1fe1da56  +ADD   R1, PC; __R1 += R15 (0x1fe1da5a) 0x1fe240bc
1fe1da58  LDR    R3, [ R1, #0 ]..??
1fe1da5a  LDR    R1, [ R7, #12 ]..??
1fe1da5c  LDR    R3, [ R3, #0 ]; R3 =
1fe1da5e  TST    R3, R1
1fe1da60  BNE    0x4a             ; 0x1fe1daae
1fe1da62  LDR    R3, [ R7, #16 ]..??
1fe1da64  TST    R6, #0x2
1fe1da68  IT     EQ
1fe1da6a  TST    R6, #0x1
1fe1da6e  LDR.w  R8, [ R7, #8 ]; R8 = *(R7(0xc) + 0x14) = *(0x20)
1fe1da72  BEQ    0x38             ; 0x1fe1daae
1fe1da74  >CMP   R4, #0
1fe1da76  BEQ    0x34             ; 0x1fe1daae
1fe1da78  STR.w  R8, [ SP, #0 ]; *((0x0) + 0x0) *0x0 = X8 0x3f3f3f3f
1fe1da7c  STR    R1, [SP, #4]; *((0x0) + 0x4) *0x4 = X1 0x3f3f3f3f
1fe1da7e  MOV    R1, R4; ->R1 = 0x0
1fe1da80  STR    R3, [SP, #8]; *((0x0) + 0x8) *0x8 = X3 0x3f3f3f3f
1fe1da82  MOV    R3, R6; ->R3 = 0x0
1fe1da84  BLX    0x4d0            ; 0x25e1df58 <-----------w00t ?????


And for new version:
Code: Select all
~/dev/OSX/jtool/jtool --version
This is jtool v1-ε^3 (San Francisco), compiled on Aug 25 2016 17:52:17


Code: Select all
 ~/dev/OSX/jtool/jtool -d ./dyld

Warning: companion file ./dyld.ARM (unknown).6CF411B5-99E9-3791-B3F4-0CED325786DD not found
Disassembling from file offset 0x1000, Address 0x1fe01000  to next function
; // function #1
__dyld_start:
; // function #2
__dyld_start:
; // function #3
__dyld_start:
; // function #4
__dyld_start:
; // function #5
...
<infinte>
...


I will be happy to see 1fe1da84 BLX 0x4d0 ; 0x1fe1df58 line...
in7egral
 
Posts: 2
Joined: Sun Sep 25, 2016 8:48 am

Re: jtool disassembler

Postby Siguza » Sun Sep 25, 2016 11:28 am

J dropped ARM/Thumb support at some point. He announced a comeback, but this has not happened yet. It probably has something to do with there still being a "-ε" in the version. ;)
User avatar
Siguza
Unicorn
 
Posts: 159
Joined: Thu Jan 28, 2016 10:38 am


Return to Tools

Who is online

Users browsing this forum: No registered users and 1 guest