Function at 0x14006d2ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcb8
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0xca0], rax
mov eax, dword [rcx + 0x8a0]
mov esi, r9d
mov ebp, dword [rsp + 0xd20]
mov r14d, r8d
mov r15d, edx
mov rdi, rcx
lea eax, [rax*8 + 0x100]
movsxd rbx, eax
cmp rbx, 0x320
jb 0x14006d345
xor eax, eax
jmp 0x14006d5a9
add rbx, rbx
lea rcx, [rsp + 0x20]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x660]
xor edx, edx
call sub.msvcrt.dll_memset
mov rbx, qword [rdi + 0x50]
mov r13d, 0x400
mov r10, qword [rdi + 0x48]
mov r11d, r13d
mov r12d, 1
mov r8d, r15d
mov ecx, r15d
and ecx, 7
mov edx, r12d
shl edx, cl
movzx r9d, byte [r10 + r8]
shr r8, 3
test byte [r8 + rbx], dl
jne 0x14006d3a5
mov ecx, r9d
jmp 0x14006d42f
mov rax, qword [rdi + 0x40]
mov ecx, esi
mov edx, dword [rax + rcx*4]
cmp r9b, 7
jae 0x14006d3f1
cmp edx, r13d
jae 0x14006d3c3
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x14006d3e8
cmp edx, 0x80000
jae 0x14006d3df
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x14006d3e8
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx + 0x20]
lea ecx, [r9 + rcx*8]
jmp 0x14006d42c
cmp edx, r13d
jae 0x14006d400
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x14006d425
cmp edx, 0x80000
jae 0x14006d41c
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x14006d425
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx*8 + 0x107]
add esi, r12d
movsxd rax, ecx
mov edx, r12d
mov ecx, r14d
mov r9d, r14d
and ecx, 7
add r15d, r12d
shl edx, cl
add word [rsp + rax*2 + 0x20], r12w
movzx r8d, byte [r10 + r9]
mov eax, r14d
shr rax, 3
test byte [rax + rbx], dl
jne 0x14006d462
mov ecx, r8d
jmp 0x14006d4f0
mov rax, qword [rdi + 0x40]
mov ecx, ebp
mov edx, dword [rax + rcx*4]
cmp r8b, 7
jae 0x14006d4b2
cmp edx, r13d
jae 0x14006d480
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x14006d4a5
cmp edx, 0x80000
jae 0x14006d49c
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x14006d4a5
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
movzx eax, byte [r9 + r10]
lea ecx, [rcx + 0x20]
lea ecx, [rax + rcx*8]
jmp 0x14006d4ed
cmp edx, r13d
jae 0x14006d4c1
movzx ecx, byte [rdx + rdi + 0x47c]
jmp 0x14006d4e6
cmp edx, 0x80000
jae 0x14006d4dd
mov rax, rdx
shr rax, 9
movzx ecx, byte [rax + rdi + 0x47c]
add ecx, 0x12
jmp 0x14006d4e6
shr edx, 0x11
movzx ecx, dl
add ecx, 0x22
lea ecx, [rcx*8 + 0x107]
add ebp, r12d
movsxd rax, ecx
add r14d, r12d
add word [rsp + rax*2 + 0x660], r12w
sub r11, r12
jne 0x14006d380
mov eax, dword [rdi + 0x8a0]
xor r8d, r8d
lea eax, [rax*8 + 0x100]
test eax, eax
je 0x14006d5a6
mov r9d, r8d
mov r10d, eax
mov ebx, 0x100
lea r11, [0x140000000]
movzx eax, word [rsp + r9 + 0x20]
cmp ax, bx
jae 0x14006d548
movzx edx, byte [rax + r11 + 0xb1370]
jmp 0x14006d559
shr rax, 8
movzx edx, byte [rax + r11 + 0xb1370]
add rdx, 8
movzx eax, word [rsp + r9 + 0x660]
cmp ax, bx
jae 0x14006d572
movzx ecx, byte [rax + r11 + 0xb1370]
jmp 0x14006d583
shr rax, 8
movzx ecx, byte [rax + r11 + 0xb1370]
add rcx, 8
mov eax, dword [r11 + rdx*4 + 0xb1320]
add r9, 2
mov ecx, dword [r11 + rcx*4 + 0xb1320]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add r8d, eax
sub r10, r12
jne 0x14006d532
mov eax, r8d
mov rcx, qword [rsp + 0xca0]
xor rcx, rsp
call fcn.140094220
add rsp, 0xcb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret