Function at 0x14009a770
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]
mov r13, rdx
movzx edx, byte [rcx + 0x10]
cmp dl, 0x80
je 0x14009a7aa
movzx eax, byte [rcx + 0x1a]
movzx ebx, byte [rcx + 0x1b]
movzx r8d, byte [rcx + 0x19]
mov byte [rbp - 0x40], r8b
mov r8, qword [rcx + 0x11]
mov qword [rbp - 0x48], r8
mov r12, qword [rcx]
mov r11, qword [rcx + 8]
movzx r15d, byte [rcx + 0x1c]
cmp r15b, 0x80
je 0x14009a7d7
movzx r9d, byte [rcx + 0x26]
movzx r10d, 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 - 0x40]
mov byte [rbp - 0x17], cl
mov rcx, qword [rbp - 0x48]
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], r12
mov qword [rbp - 0x28], r11
mov byte [rbp - 0x20], dl
mov byte [rbp - 0x16], al
mov byte [rbp - 0x15], bl
mov byte [rbp - 0x14], r15b
mov byte [rbp - 0xa], r9b
mov byte [rbp - 9], r10b
cmp dl, 0x80
je 0x14009a872
cmp al, bl
jae 0x14009a86f
mov qword [rbp - 0x38], r11
mov byte [rbp + 7], r10b
mov byte [rbp + 6], r9b
movzx r14d, bl
mov rdi, qword [r13 + 0x20]
movzx esi, al
mov qword [rbp - 0x50], r13
mov rax, qword [r13 + 0x28]
mov r13, qword [rax + 0x20]
nop
movzx edx, byte [rbp + rsi - 0x20]
mov rcx, rdi
call r13
test al, al
jne 0x14009aafd
inc rsi
cmp r14, rsi
jne 0x14009a840
mov eax, ebx
mov r13, qword [rbp - 0x50]
movzx r9d, byte [rbp + 6]
movzx r10d, byte [rbp + 7]
mov r11, qword [rbp - 0x38]
mov byte [rbp - 0x16], al
test r12, r12
je 0x14009aab7
cmp r12, r11
je 0x14009aab7
mov rdi, qword [r13 + 0x20]
mov rbx, qword [r13 + 0x28]
mov byte [rbp + 6], r9b
mov byte [rbp + 7], r10b
mov qword [rbp - 0x38], r11
movzx eax, byte [r12]
test al, al
js 0x14009a8b0
inc r12
jmp 0x14009a920
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r12 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14009a8fe
movzx edx, byte [r12 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x14009a90c
movzx eax, byte [r12 + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x14009aab7
add r12, 4
jmp 0x14009a920
add r12, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x14009a920
add r12, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
nop word [rax + rax]
mov cl, 2
mov dl, 0x5c
lea r8d, [rax - 9]
cmp r8d, 0x1e
ja case.default.0x14009a93c
lea rsi, [0x1400b5688]
movsxd r8, dword [rsi + r8*4]
add r8, rsi
jmp r8
mov r10b, 0x74
xor r9d, r9d
jmp 0x14009aa50
cmp eax, 0x5c
jne case.0x14009a93c.11
xor r9d, r9d
mov r10d, eax
jmp 0x14009aa50
lea r8d, [rax - 0x20]
cmp r8d, 0x5f
jae 0x14009a99f
cmp al, 0x22
je case.0x14009a93c.34
movzx r8d, al
cmp r8d, 0x5c
je 0x14009aa3b
cmp r8d, 0x27
je case.0x14009a93c.34
mov cl, 1
xor r9d, r9d
xor r10d, r10d
jmp 0x14009aa41
mov r10b, 0x72
xor r9d, r9d
jmp 0x14009aa50
mov r10b, 0x6e
xor r9d, r9d
jmp 0x14009aa50
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 edx, byte [rbp - 8]
movzx r10d, byte [rbp - 7]
mov cl, 0xa
mov r9, qword [rbp - 6]
jmp 0x14009aa53
xor r9d, r9d
mov r10d, eax
mov edx, eax
nop word cs:[rax + rax]
xor r8d, r8d
mov byte [rbp - 0x20], dl
mov byte [rbp - 0x1f], r10b
mov qword [rbp - 0x1e], r9
mov byte [rbp - 0x15], cl
movzx edx, r8b
movzx r14d, cl
nop dword [rax]
cmp rdx, r14
jae 0x14009aaa0
lea rsi, [rdx + 1]
mov byte [rbp - 0x16], sil
movzx edx, byte [rbp + rdx - 0x20]
mov rcx, rdi
call qword [rbx + 0x20]
mov rdx, rsi
test al, al
je 0x14009aa70
jmp 0x14009aafd
mov r11, qword [rbp - 0x38]
cmp r12, r11
movzx r9d, byte [rbp + 6]
movzx r10d, byte [rbp + 7]
jne 0x14009a898
neg r15b
jo 0x14009ab01
cmp r9b, r10b
jae 0x14009ab01
movzx ebx, r10b
mov rdi, qword [r13 + 0x20]
movzx r14d, r9b
mov rax, qword [r13 + 0x28]
mov rsi, qword [rax + 0x20]
dec rbx
nop dword [rax + rax]
movzx edx, byte [rbp + r14 - 0x14]
mov rcx, rdi
call rsi
test al, al
jne 0x14009ab03
lea rcx, [r14 + 1]
cmp rbx, r14
mov r14, rcx
jne 0x14009aae0
jmp 0x14009ab03
mov al, 1
jmp 0x14009ab03
xor eax, eax
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret