Function at 0x14000c500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x40
mov qword [rsp + 0x60], rbx
mov rbp, rdx
mov qword [rsp + 0x30], rdi
mov rbx, rcx
mov rcx, qword [rdx + 0x448]
movzx edi, r8b
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test rcx, rcx
je 0x14000c538
xor r8d, r8d
call fcn.14000df20
mov r8d, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x2c]
cmp r8d, ecx
jne 0x14000c56e
inc r8d
test ecx, ecx
je 0x14000c556
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14000c55b
mov eax, 8
cmp eax, r8d
lea rcx, [rbx + 0x28]
cmovg r8d, eax
mov edx, r8d
call fcn.140025580
movsxd rcx, dword [rbx + 0x28]
mov r15d, 1
mov rax, qword [rbx + 0x30]
mov qword [rax + rcx*8], rbp
inc dword [rbx + 0x28]
or byte [rbx + 0xb5], 1
mov qword [rbp + 0x448], rbx
mov eax, dword [rbx]
mov dword [rbp + 0x458], eax
cmp dword [rbx + 0x28], 1
movzx eax, byte [rbp + 0x472]
setg cl
and al, 0xfe
or cl, al
and cl, 0xfb
mov byte [rbp + 0x472], cl
cmp qword [rbx + 0x78], 0
jne 0x14000c639
cmp dword [rbx + 0x28], 2
jne 0x14000c5e6
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0xc0], 0
jne 0x14000c5e6
mov byte [rcx + 0xc6], r15b
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0xdc], r15d
cmp qword [rbx + 0x78], 0
jne 0x14000c639
cmp qword [rbx + 0x10], 0
jne 0x14000c639
test dword [rbx + 8], 0x400
jne 0x14000c639
mov eax, dword [rbx + 0xb0]
test al, 7
jne 0x14000c613
and eax, 0xfffffffa
or eax, 2
mov dword [rbx + 0xb0], eax
test al, 0x38
jne 0x14000c623
and eax, 0xffffffd7
or eax, 0x10
mov dword [rbx + 0xb0], eax
test eax, 0x1c0
jne 0x14000c639
and eax, 0xfffffebf
bts eax, 7
mov dword [rbx + 0xb0], eax
test dil, dil
je 0x14000c6b8
cmp qword [rbx + 0x38], 0
jne 0x14000c6a7
mov rcx, rbx
call fcn.14000c490
mov rcx, qword [rbx + 0x38]
xor edi, edi
mov eax, dword [rbx + 0xa8]
mov dword [rcx + 0x1c], eax
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x18], eax
mov eax, dword [rbx + 0x28]
dec eax
test eax, eax
jle 0x14000c6a7
mov qword [rsp + 0x38], rsi
mov esi, edi
nop word [rax + rax]
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
mov r8, qword [rsi + r8]
call fcn.140040070
mov eax, dword [rbx + 0x28]
lea rsi, [rsi + 8]
dec eax
inc edi
cmp edi, eax
jl 0x14000c680
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x38]
mov r8, rbp
mov edx, 0x400000
call fcn.140040070
mov ecx, dword [rbx + 8]
mov eax, ecx
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr eax, 0xb
shr ecx, 0xa
cmp qword [rbx + 0x10], 0
movzx eax, al
movzx r8d, cl
cmovne r8d, eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000c6f5
test byte [rax + 0xb4], r15b
je 0x14000c6f5
movzx eax, r15b
jmp 0x14000c6f7
xor al, al
cmp dword [rbx + 0x28], 0
movzx edx, al
mov rax, qword [rbx + 0x20]
cmovg edx, r15d
mov r15, qword [rsp + 0x20]
or dl, r8b
test rax, rax
je 0x14000c720
test byte [rax + 0xb4], 1
je 0x14000c720
mov cl, 1
jmp 0x14000c722
xor cl, cl
movzx eax, byte [rbx + 0xb4]
or cl, dl
mov r8, qword [rbx + 0x78]
and cl, 1
and al, 0xfe
xor cl, al
mov byte [rbx + 0xb4], cl
mov rbx, qword [rsp + 0x60]
test r8, r8
je 0x14000c75a
mov edx, dword [rbp + 0xc]
mov rcx, rbp
bts edx, 0x18
add rsp, 0x40
pop rbp
jmp fcn.140024410
add rsp, 0x40
pop rbp
ret