Function at 0x14001fc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
mov r14, r8
mov rbx, qword [rdx]
mov rdi, rdx
mov rsi, rcx
movzx r15d, byte [rbp + 0x20]
xor r15d, 3
test rbx, rbx
je 0x14001fecc
mov qword [rsp + 0x50], r12
lea r12, [0x140000000]
mov qword [rsp + 0x58], r13
lea r13, [0x140058af0]
nop word [rax + rax]
mov rax, r14
dec r14
test rax, rax
je 0x14001feae
cmp byte [rbx + 8], 8
jne 0x14001fcbb
lea rdx, [rbx + 0x98]
mov r8, 0xfffffffffffffffd
mov rcx, rsi
call fcn.14001fc40
movzx ecx, byte [rbx + 9]
mov eax, ecx
xor eax, 3
test r15d, eax
je 0x14001fcdf
movzx eax, byte [rbp + 0x20]
and cl, 0xf8
and al, 3
mov rdi, rbx
or al, cl
mov byte [rbx + 9], al
jmp case.default.0x14001fd0f
mov rax, qword [rbx]
mov qword [rdi], rax
cmp rbx, qword [rbp + 0x28]
jne 0x14001fcf2
mov rax, qword [rbx]
mov qword [rbp + 0x28], rax
movzx eax, byte [rbx + 8]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x14001fd0f
cdqe
mov ecx, dword [r12 + rax*4 + 0x1fee0]
add rcx, r12
jmp rcx
movsxd r8, dword [rbx + 0x50]
xor r9d, r9d
mov rdx, qword [rbx + 0x18]
mov rcx, rsi
shl r8, 2
call fcn.140015cf0
movsxd r8, dword [rbx + 0x58]
xor r9d, r9d
mov rdx, qword [rbx + 0x20]
mov rcx, rsi
shl r8, 3
call fcn.140015cf0
movsxd r8, dword [rbx + 0x4c]
xor r9d, r9d
mov rdx, qword [rbx + 0x10]
mov rcx, rsi
shl r8, 4
call fcn.140015cf0
movsxd r8, dword [rbx + 0x54]
xor r9d, r9d
mov rdx, qword [rbx + 0x28]
mov rcx, rsi
shl r8, 2
call fcn.140015cf0
movsxd r8, dword [rbx + 0x5c]
xor r9d, r9d
mov rdx, qword [rbx + 0x30]
mov rcx, rsi
shl r8, 4
call fcn.140015cf0
movsxd r8, dword [rbx + 0x48]
xor r9d, r9d
mov rdx, qword [rbx + 0x38]
mov rcx, rsi
shl r8, 3
call fcn.140015cf0
mov r8d, 0x78
jmp 0x14001fe94
cmp byte [rbx + 0xa], 0
movzx r8d, byte [rbx + 0xb]
je 0x14001fdba
shl r8, 4
jmp 0x14001fe90
shl r8, 3
jmp 0x14001fe90
lea rdx, [rbx + 0x18]
cmp qword [rbx + 0x10], rdx
je 0x14001fde3
mov rcx, qword [rbx + 0x20]
mov rax, qword [rdx]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx]
mov rax, qword [rbx + 0x20]
mov qword [rcx + 0x20], rax
mov r8d, 0x28
jmp 0x14001fe94
mov rdx, qword [rbx + 0x20]
cmp rdx, r13
je 0x14001fe16
movzx ecx, byte [rbx + 0xb]
mov eax, 1
shl rax, cl
xor r9d, r9d
mov rcx, rsi
lea r8, [rax + rax*4]
shl r8, 3
call fcn.140015cf0
movsxd r8, dword [rbx + 0x38]
xor r9d, r9d
mov rdx, qword [rbx + 0x18]
mov rcx, rsi
shl r8, 4
call fcn.140015cf0
mov r8d, 0x40
jmp 0x14001fe94
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call fcn.1400129f0
movsxd rax, dword [rbx + 0x5c]
xor r9d, r9d
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
lea r8, [rax + rax*4]
shl r8, 3
call fcn.140015cf0
movsxd r8, dword [rbx + 0x58]
xor r9d, r9d
mov rdx, qword [rbx + 0x40]
mov rcx, rsi
shl r8, 4
call fcn.140015cf0
mov r8d, 0xb8
jmp 0x14001fe94
mov rax, qword [rsi + 0x20]
dec dword [rax + 8]
mov r8, qword [rbx + 0x10]
add r8, 0x19
jmp 0x14001fe94
mov r8, qword [rbx + 0x20]
add r8, 0x28
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
call fcn.140015cf0
mov rbx, qword [rdi]
test rbx, rbx
jne 0x14001fc90
mov r12, qword [rsp + 0x50]
mov rax, rdi
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
mov rax, rdx
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret