Function at 0x14006ed60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, rdx
mov qword [rsp + 0x20], rdx
mov rsi, rcx
lea rdx, [rsp + 0x28]
xor edi, edi
mov rcx, rax
movzx r12d, r9b
mov dword [rsp + 0x28], edi
movzx r13d, r8b
call fcn.14006c6d0
mov ebx, dword [rsp + 0x28]
lea r15, [rsi + 0x18]
test al, al
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
mov rax, qword [rsi]
cmove ebx, edi
xor edx, edx
mov dword [rsp + 0x28], ebx
lea rdi, [rsi + 0x48]
mov ecx, dword [rax + 0x64]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov r14d, ecx
mov r8d, ecx
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x60], r14
call fcn.140132a80
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
mov r8d, dword [rax + 0x60]
call fcn.14006f1c0
mov rcx, qword [rsi + 0x28]
movzx ebp, al
cmp qword [rsi + 0x30], rcx
je 0x14006f031
test ebx, ebx
je 0x14006f031
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.14006c6d0
test al, al
mov ecx, 0
mov eax, dword [rsp + 0x28]
mov r8, r14
cmove eax, ecx
mov rcx, qword [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x28], eax
call fcn.140132a80
mov rax, qword [rdi + 0x10]
xor bpl, bpl
mov qword [rdi + 0x18], rax
mov r14, qword [r15 + 0x10]
cmp r14, qword [r15 + 0x18]
je 0x14006f00c
nop word [rax + rax]
mov rcx, qword [rsi]
mov r9d, dword [r14]
add r9, r9
mov r11, qword [rcx + 0x10]
mov eax, dword [r11 + r9*8 + 0xc]
cmp eax, ebx
je 0x14006eedc
cmp eax, 0xffffffff
je 0x14006eedc
cmp eax, 0xfffffffe
jne 0x14006ef37
mov edx, dword [r11 + r9*8 + 8]
mov r10, qword [rcx + 0x40]
lea rcx, [rdx + rdx*2]
mov r8d, dword [r10 + rcx*4]
shr r8d, 0x1f
not r8b
and r8b, 1
cmp edx, 0xffffffff
je 0x14006eed3
nop word [rax + rax]
mov eax, edx
lea rcx, [rax + rax*2]
mov eax, dword [r10 + rcx*4]
btr eax, 0x1f
cmp ebx, eax
jb 0x14006eec9
cmp ebx, dword [r10 + rcx*4 + 4]
jbe 0x14006eed7
mov edx, dword [r10 + rcx*4 + 8]
cmp edx, 0xffffffff
jne 0x14006eeb0
xor r8b, 1
test r8b, r8b
je 0x14006ef37
mov r8d, dword [r11 + r9*8]
mov r10d, r8d
mov ecx, r8d
shl r10, 4
add r10, r11
cmp dword [r10 + 4], 0xffffffff
je 0x14006ef7e
mov r8d, dword [r10]
mov rdx, rdi
mov rcx, rsi
call fcn.14006f1c0
mov r8d, dword [r10 + 4]
mov rdx, rdi
mov rcx, rsi
movzx r11d, al
call fcn.14006f1c0
test al, al
jne 0x14006ef26
test r11b, r11b
je 0x14006efbc
mov bpl, 1
test r12b, r12b
jne 0x14006ef37
test bpl, bpl
jne 0x14006f02d
test r13b, r13b
jne 0x14006effe
mov rax, qword [rsi]
mov r8d, dword [rax + 0x60]
mov r10d, r8d
mov ecx, r8d
shl r10, 4
add r10, qword [rax + 0x10]
cmp dword [r10 + 4], 0xffffffff
je 0x14006efca
mov r8d, dword [r10]
mov rdx, rdi
mov rcx, rsi
call fcn.14006f1c0
mov r8d, dword [r10 + 4]
mov rdx, rdi
mov rcx, rsi
call fcn.14006f1c0
jmp 0x14006effe
mov rax, qword [rsi + 0x78]
mov edx, 1
shr rcx, 5
lea r9, [rax + rcx*4]
mov ecx, r8d
mov eax, dword [r9]
and ecx, 0x1f
shl edx, cl
test edx, eax
jne 0x14006efb2
or eax, edx
mov dword [r9], eax
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 4]
mov qword [rdi + 0x18], rax
mov dword [rcx], r8d
cmp dword [r10], 0xffffffff
je 0x14006ef26
test bpl, bpl
jne 0x14006ef26
jmp 0x14006ef29
mov rax, qword [rsi + 0x78]
mov edx, 1
shr rcx, 5
lea r9, [rax + rcx*4]
mov ecx, r8d
mov eax, dword [r9]
and ecx, 0x1f
shl edx, cl
test edx, eax
jne 0x14006effe
or eax, edx
mov dword [r9], eax
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 4]
mov qword [rdi + 0x18], rax
mov dword [rcx], r8d
add r14, 4
cmp r14, qword [r15 + 0x18]
jne 0x14006ee60
mov rax, r15
mov r15, rdi
mov rdi, rax
mov rax, qword [r15 + 0x10]
cmp qword [r15 + 0x18], rax
je 0x14006f031
mov ebx, dword [rsp + 0x28]
mov r14, qword [rsp + 0x60]
jmp 0x14006ee07
mov al, 1
jmp 0x14006f035
movzx eax, bpl
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret