Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
iOS-run-macOS-executables-tools/resign_dyld/thepatch_full.s
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
101 lines (101 sloc)
2.17 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .section __TEXT,__text,regular,pure_instructions | |
| .build_version ios, 12, 0 sdk_version 11, 1 | |
| .globl _comparePath ; -- Begin function comparePath | |
| .p2align 2 | |
| ; patch stat64 to return error if path does not begin with /usr/local/zhuowei | |
| totalstart: | |
| .space 0x0000000000045ac8 - 4 | |
| ; __ZN5dyld37closure19LaunchClosureWriterC2EPKNS0_10ImageArrayE | |
| .ascii "GOT2" | |
| comparePath: ; @comparePath | |
| LcomparePath: | |
| .cfi_startproc | |
| ; %bb.0: | |
| ldrb w8, [x0] | |
| cmp w8, #47 ; =47 | |
| b.ne LBB0_18 | |
| ; %bb.1: | |
| ldrb w8, [x0, #1] | |
| cmp w8, #117 ; =117 | |
| b.ne LBB0_18 | |
| ; %bb.2: | |
| ldrb w8, [x0, #2] | |
| cmp w8, #115 ; =115 | |
| b.ne LBB0_18 | |
| ; %bb.3: | |
| ldrb w8, [x0, #3] | |
| cmp w8, #114 ; =114 | |
| b.ne LBB0_18 | |
| ; %bb.4: | |
| ldrb w8, [x0, #4] | |
| cmp w8, #47 ; =47 | |
| b.ne LBB0_18 | |
| ; %bb.5: | |
| ldrb w8, [x0, #5] | |
| cmp w8, #108 ; =108 | |
| b.ne LBB0_18 | |
| ; %bb.6: | |
| ldrb w8, [x0, #6] | |
| cmp w8, #111 ; =111 | |
| b.ne LBB0_18 | |
| ; %bb.7: | |
| ldrb w8, [x0, #7] | |
| cmp w8, #99 ; =99 | |
| b.ne LBB0_18 | |
| ; %bb.8: | |
| ldrb w8, [x0, #8] | |
| cmp w8, #97 ; =97 | |
| b.ne LBB0_18 | |
| ; %bb.9: | |
| ldrb w8, [x0, #9] | |
| cmp w8, #108 ; =108 | |
| b.ne LBB0_18 | |
| ; %bb.10: | |
| ldrb w8, [x0, #10] | |
| cmp w8, #47 ; =47 | |
| b.ne LBB0_18 | |
| ; %bb.11: | |
| ldrb w8, [x0, #11] | |
| cmp w8, #122 ; =122 | |
| b.ne LBB0_18 | |
| ; %bb.12: | |
| ldrb w8, [x0, #12] | |
| cmp w8, #104 ; =104 | |
| b.ne LBB0_18 | |
| ; %bb.13: | |
| ldrb w8, [x0, #13] | |
| cmp w8, #117 ; =117 | |
| b.ne LBB0_18 | |
| ; %bb.14: | |
| ldrb w8, [x0, #14] | |
| cmp w8, #111 ; =111 | |
| b.ne LBB0_18 | |
| ; %bb.15: | |
| ldrb w8, [x0, #15] | |
| cmp w8, #119 ; =119 | |
| b.ne LBB0_18 | |
| ; %bb.16: | |
| ldrb w8, [x0, #16] | |
| cmp w8, #101 ; =101 | |
| b.ne LBB0_18 | |
| ; %bb.17: | |
| ldrb w8, [x0, #17] | |
| cmp w8, #105 ; =105 | |
| b.ne LBB0_18 | |
| ; yes, it does; return back | |
| mov x16, #338 | |
| b Lstat64_returnhere | |
| LBB0_18: | |
| ; does not begin with /usr/local/zhuowei | |
| mov x0, #1 | |
| ret | |
| .ascii "END2" | |
| .org 0x0000000000063994 - 4 | |
| .ascii "GOT1" | |
| stat64_head: | |
| b LcomparePath | |
| Lstat64_returnhere: | |
| .ascii "END1" | |
| ; -- End function | |
| .cfi_endproc | |
| .subsections_via_symbols |