Function at 0x1400cf900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
movzx r9d, byte [rcx + 0x10]
cmp r9b, 0x80
je 0x1400cf939
movzx eax, byte [rcx + 0x1a]
movzx ebx, byte [rcx + 0x1b]
movzx r8d, byte [rcx + 0x19]
mov byte [rbp - 0x48], r8b
mov r8, qword [rcx + 0x11]
mov qword [rbp - 0x50], r8
mov r15, qword [rcx]
mov r14, qword [rcx + 8]
movzx r12d, byte [rcx + 0x1c]
cmp r12b, 0x80
je 0x1400cf965
movzx r10d, byte [rcx + 0x26]
movzx esi, byte [rcx + 0x27]
movzx r8d, byte [rcx + 0x25]
mov byte [rbp], r8b
mov rcx, qword [rcx + 0x1d]
mov qword [rbp - 8], rcx
movzx ecx, byte [rbp - 0x48]
mov byte [rbp - 0x17], cl
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x1f], rcx
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x13], rcx
movzx ecx, byte [rbp]
mov byte [rbp - 0xb], cl
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x20], r9b
mov byte [rbp - 0x16], al
mov byte [rbp - 0x15], bl
mov byte [rbp - 0x14], r12b
mov byte [rbp - 0xa], r10b
mov byte [rbp - 9], sil
cmp r9b, 0x80
je 0x1400cfa02
cmp al, bl
jae 0x1400cf9ff
mov qword [rbp - 0x38], r14
mov byte [rbp + 7], sil
mov byte [rbp + 6], r10b
movzx esi, bl
mov rdi, qword [rdx + 0x20]
movzx r14d, al
mov qword [rbp - 0x40], rdx
mov rax, qword [rdx + 0x28]
mov r13, qword [rax + 0x20]
nop
movzx edx, byte [rbp + r14 - 0x20]
mov rcx, rdi
call r13
test al, al
jne 0x1400cfc8d
inc r14
cmp rsi, r14
jne 0x1400cf9d0
mov eax, ebx
mov rdx, qword [rbp - 0x40]
movzx r10d, byte [rbp + 6]
movzx esi, byte [rbp + 7]
mov r14, qword [rbp - 0x38]
mov byte [rbp - 0x16], al
test r15, r15
je 0x1400cfc4a
cmp r15, r14
je 0x1400cfc4a
mov rdi, qword [rdx + 0x20]
mov rbx, qword [rdx + 0x28]
mov qword [rbp - 0x40], rdx
mov byte [rbp + 6], r10b
mov byte [rbp + 7], sil
mov qword [rbp - 0x38], r14
movzx eax, byte [r15]
test al, al
js 0x1400cfa40
inc r15
jmp 0x1400cfab0
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x1400cfa8e
movzx r9d, byte [r15 + 2]
shl r8d, 6
and r9d, 0x3f
or r9d, r8d
cmp al, 0xf0
jb 0x1400cfa9c
movzx eax, byte [r15 + 3]
and ecx, 7
shl ecx, 0x12
shl r9d, 6
and eax, 0x3f
or eax, r9d
or eax, ecx
cmp eax, 0x110000
je 0x1400cfc4a
add r15, 4
jmp 0x1400cfab0
add r15, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x1400cfab0
add r15, 3
shl ecx, 0xc
or r9d, ecx
mov eax, r9d
nop dword [rax]
mov cl, 2
mov r11b, 0x5c
lea r8d, [rax - 9]
cmp r8d, 0x1e
ja case.default.0x1400cfacd
lea r9, [0x1400f0ab8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov r10b, 0x74
xor r9d, r9d
jmp 0x1400cfbe0
cmp eax, 0x5c
jne case.0x1400cfacd.11
xor r9d, r9d
mov r10d, eax
jmp 0x1400cfbe0
lea r8d, [rax - 0x20]
cmp r8d, 0x5f
jae 0x1400cfb30
cmp al, 0x22
je case.0x1400cfacd.34
movzx r8d, al
cmp r8d, 0x5c
je 0x1400cfbcd
cmp r8d, 0x27
je case.0x1400cfacd.34
mov cl, 1
xor r9d, r9d
xor r10d, r10d
jmp 0x1400cfbd3
mov r10b, 0x72
xor r9d, r9d
jmp 0x1400cfbe0
mov r10b, 0x6e
xor r9d, r9d
jmp 0x1400cfbe0
mov ecx, eax
or ecx, 1
bsr ecx, ecx
xor ecx, 0x1c
shr ecx, 2
lea r8, [rcx - 2]
mov byte [rbp - 6], 0
mov word [rbp - 8], 0
mov edx, eax
shr edx, 0x14
lea r9, str.0123456789abcdefEscapeDefaultBorrowErroralready_mutably_borrowedBorrowMutErroralready_borrowedalready_borrowed:
movzx edx, byte [rdx + r9]
mov byte [rbp - 5], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
movzx edx, byte [rdx + r9]
mov byte [rbp - 4], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
movzx edx, byte [rdx + r9]
mov byte [rbp - 3], dl
mov edx, eax
shr edx, 8
and edx, 0xf
movzx edx, byte [rdx + r9]
mov byte [rbp - 2], dl
mov edx, eax
shr edx, 4
and edx, 0xf
movzx edx, byte [rdx + r9]
mov byte [rbp - 1], dl
and eax, 0xf
movzx eax, byte [rax + r9]
mov byte [rbp], al
mov byte [rbp + 1], 0x7d
mov word [rbp + rcx - 0xa], 0x755c
mov byte [rbp + rcx - 8], 0x7b
movzx r11d, byte [rbp - 8]
movzx r10d, byte [rbp - 7]
mov r9, qword [rbp - 6]
mov cl, 0xa
jmp 0x1400cfbe3
xor r9d, r9d
mov r10d, eax
mov r11d, eax
nop word cs:[rax + rax]
xor r8d, r8d
mov byte [rbp - 0x20], r11b
mov byte [rbp - 0x1f], r10b
mov qword [rbp - 0x1e], r9
mov byte [rbp - 0x15], cl
movzx r14d, r8b
movzx esi, cl
mov r13d, r14d
inc r13b
nop
cmp r14, rsi
jae 0x1400cfc30
mov byte [rbp - 0x16], r13b
movzx edx, byte [rbp + r14 - 0x20]
inc r14
mov rcx, rdi
call qword [rbx + 0x20]
inc r13b
test al, al
je 0x1400cfc00
jmp 0x1400cfc8d
mov r14, qword [rbp - 0x38]
cmp r15, r14
mov rdx, qword [rbp - 0x40]
movzx r10d, byte [rbp + 6]
movzx esi, byte [rbp + 7]
jne 0x1400cfa2c
cmp r12b, 0x80
je 0x1400cfc91
cmp r10b, sil
jae 0x1400cfc91
movzx esi, sil
mov rdi, qword [rdx + 0x20]
movzx ebx, r10b
mov rax, qword [rdx + 0x28]
mov r14, qword [rax + 0x20]
dec rsi
nop dword [rax]
movzx edx, byte [rbp + rbx - 0x14]
mov rcx, rdi
call r14
test al, al
jne 0x1400cfc93
lea rcx, [rbx + 1]
cmp rsi, rbx
mov rbx, rcx
jne 0x1400cfc70
jmp 0x1400cfc93
mov al, 1
jmp 0x1400cfc93
xor eax, eax
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret