Function at 0x14008dd40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rdx
movzx r8d, byte [rcx + 0x10]
cmp r8b, 0x80
je 0x14008dd79
movzx eax, byte [rcx + 0x1a]
movzx edx, byte [rcx + 0x1b]
movzx r9d, byte [rcx + 0x19]
mov byte [rsp + 0x68], r9b
mov r9, qword [rcx + 0x11]
mov qword [rsp + 0x60], r9
mov r15, qword [rcx]
mov r11, qword [rcx + 8]
movzx r12d, byte [rcx + 0x1c]
cmp r12b, 0x80
je 0x14008dda8
movzx r13d, byte [rcx + 0x26]
movzx r10d, byte [rcx + 0x27]
movzx r9d, byte [rcx + 0x25]
mov byte [rsp + 0x30], r9b
mov rcx, qword [rcx + 0x1d]
mov qword [rsp + 0x28], rcx
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + 0x51], cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x49], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x55], rcx
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + 0x5d], cl
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x40], r11
mov byte [rsp + 0x48], r8b
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], dl
mov byte [rsp + 0x54], r12b
mov byte [rsp + 0x5e], r13b
mov byte [rsp + 0x27], r10b
mov byte [rsp + 0x5f], r10b
cmp r8b, 0x80
jne 0x14008e03e
mov byte [rsp + 0x48], pe_nt_image_headers64
test r15, r15
je 0x14008e07e
cmp r15, qword [rsp + 0x70]
je 0x14008e07e
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
mov byte [rsp + 0x26], r13b
movzx eax, byte [r15]
test al, al
js 0x14008de60
inc r15
mov cl, 2
lea edx, [rax - 9]
cmp edx, 0x1e
ja case.default.0x14008de55
lea r8, [0x1400b8f54]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
mov ax, 0x745c
jmp 0x14008df00
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14008deb9
movzx edx, byte [r15 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x14008df76
movzx eax, byte [r15 + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x14008e07e
add r15, 4
mov cl, 2
lea edx, [rax - 9]
cmp edx, 0x1e
jbe 0x14008de47
jmp case.default.0x14008de55
add r15, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
mov cl, 2
lea edx, [rax - 9]
cmp edx, 0x1e
jbe 0x14008de47
cmp eax, 0x5c
jne case.0x14008de55.11
shl eax, 8
or eax, 0x5c
jmp 0x14008df00
lea ecx, [rax - 0x20]
cmp ecx, 0x5f
jae 0x14008df94
mov cl, 1
jmp 0x14008df00
mov ax, 0x725c
jmp 0x14008df00
mov ax, 0x6e5c
nop word [rax + rax]
xor edx, edx
xor r8d, r8d
mov word [rsp + 0x48], ax
mov qword [rsp + 0x4a], rdx
mov byte [rsp + 0x52], r8b
mov byte [rsp + 0x53], cl
movzx r14d, r8b
movzx ebp, cl
mov r13d, r14d
inc r13b
nop word cs:[rax + rax]
cmp r14, rbp
jae 0x14008df60
mov byte [rsp + 0x52], r13b
movzx edx, byte [rsp + r14 + 0x48]
inc r14
mov rcx, rdi
call qword [rbx + 0x20]
inc r13b
test al, al
je 0x14008df30
jmp 0x14008e079
cmp r15, qword [rsp + 0x70]
movzx r13d, byte [rsp + 0x26]
jne 0x14008de2e
jmp 0x14008e07e
add r15, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
mov cl, 2
lea edx, [rax - 9]
cmp edx, 0x1e
jbe 0x14008de47
jmp case.default.0x14008de55
mov byte [rsp + 0x2a], 0
mov word [rsp + 0x28], 0
mov byte [rsp + 0x31], 0x7d
mov ecx, eax
shr ecx, 0x14
lea rdx, str.0123456789abcdef_Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_core_src_escape.rs
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2b], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2c], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2d], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2e], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2f], cl
mov ecx, eax
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x30], cl
or eax, 1
bsr eax, eax
xor eax, 0x1c
shr eax, 2
lea r8, [rax - 2]
movzx ecx, byte [0x1400b676a]
mov byte [rsp + rax + 0x28], cl
movzx ecx, word [0x1400b6768]
mov word [rsp + rax + 0x26], cx
movzx eax, word [rsp + 0x28]
mov rdx, qword [rsp + 0x2a]
mov cl, 0xa
jmp 0x14008df05
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
movzx edi, al
movzx ebp, dl
nop dword [rax]
cmp rdi, rbp
jae 0x14008de08
lea eax, [rdi + 1]
mov byte [rsp + 0x52], al
cmp rdi, 0xa
jae 0x14008e0dc
movzx edx, byte [rsp + rdi + 0x48]
mov rcx, rbx
call qword [r14 + 0x20]
inc rdi
test al, al
je 0x14008e050
mov sil, 1
jmp 0x14008e0c9
cmp r12b, 0x80
jne 0x14008e088
xor esi, esi
jmp 0x14008e0c9
mov rbx, qword [rsi + 0x20]
mov r15, qword [rsi + 0x28]
movzx edi, r13b
movzx r14d, byte [rsp + 0x27]
nop word [rax + rax]
cmp rdi, r14
setb sil
jae 0x14008e0c9
lea eax, [rdi + 1]
mov byte [rsp + 0x5e], al
cmp rdi, 0xa
jae 0x14008e0dc
movzx edx, byte [rsp + rdi + 0x54]
mov rcx, rbx
call qword [r15 + 0x20]
inc rdi
test al, al
je 0x14008e0a0
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1400b67b8]
mov edx, 0xa
mov rcx, rdi
call sym.core::panicking::panic_bounds_check::h38fa840465af3a23
int3