Function at 0x1000c5f00
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, 0xcc8
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
mov ebp, dword [rcx + 0x8a0]
movsxd rsi, r9d
mov r12d, r8d
lea eax, [rbp*8 + 0x100]
mov r13d, edx
mov rdi, rcx
mov dword [rsp + 0x20], ebp
cmp eax, 0x320
jb 0x1000c5f51
xor eax, eax
jmp 0x1000c61bc
movsxd rbx, eax
lea rcx, [rsp + 0x30]
xor edx, edx
add rbx, rbx
mov r8, rbx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x670]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
movsxd r10, dword [rsp + 0xd30]
mov r9, qword [rdi + 0x48]
mov r11, rsi
mov rsi, qword [rdi + 0x50]
mov r15d, 0x400
shl r10, 2
mov ebp, 1
mov r14d, 0x80000
shl r11, 2
mov rbx, r15
mov ecx, r13d
mov eax, r13d
mov edx, ebp
and ecx, 7
shr rax, 3
mov r8d, r13d
shl edx, cl
test byte [rax + rsi], dl
jne 0x1000c5fca
movzx eax, byte [r9 + r8]
jmp 0x1000c6050
cmp byte [r9 + r8], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r11 + rax]
jae 0x1000c6016
cmp ecx, r15d
jge 0x1000c5fe7
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1000c6005
cmp ecx, r14d
jge 0x1000c5fff
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1000c6005
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r9 + r8]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x1000c604c
cmp ecx, r15d
jge 0x1000c6024
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1000c6042
cmp ecx, r14d
jge 0x1000c603c
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1000c6042
sar ecx, 0x11
add cl, 0x22
movzx eax, cl
lea eax, [rax*8 + 0x107]
add r11, 4
cdqe
mov ecx, r12d
mov edx, ebp
add word [rsp + rax*2 + 0x30], bp
and ecx, 7
mov eax, r12d
shr rax, 3
shl edx, cl
add r13d, ebp
mov r8d, r12d
test byte [rax + rsi], dl
jne 0x1000c607d
movzx eax, byte [r8 + r9]
jmp 0x1000c6103
cmp byte [r8 + r9], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r10 + rax]
jae 0x1000c60c9
cmp ecx, r15d
jge 0x1000c609a
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1000c60b8
cmp ecx, r14d
jge 0x1000c60b2
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1000c60b8
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r8 + r9]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x1000c60ff
cmp ecx, r15d
jge 0x1000c60d7
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1000c60f5
cmp ecx, r14d
jge 0x1000c60ef
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1000c60f5
sar ecx, 0x11
add cl, 0x22
movzx eax, cl
lea eax, [rax*8 + 0x107]
add r10, 4
cdqe
add r12d, ebp
add word [rsp + rax*2 + 0x670], bp
sub rbx, rbp
jne 0x1000c5fa7
mov ebp, dword [rsp + 0x20]
xor r8d, r8d
lea eax, [rbp*8 + 0x100]
cmp eax, r8d
jbe 0x1000c61b9
mov r9, r8
mov r10d, eax
mov ebx, 0x100
lea r11, [0x100000000]
movzx eax, word [rsp + r9 + 0x30]
cmp ax, bx
movzx eax, ax
jae 0x1000c615b
movzx edx, byte [rax + r11 + 0x2b20]
jmp 0x1000c616b
shr rax, 8
movzx edx, byte [rax + r11 + 0x2b20]
add edx, 8
movzx eax, word [rsp + r9 + 0x670]
cmp ax, bx
movzx eax, ax
jae 0x1000c6187
movzx ecx, byte [rax + r11 + 0x2b20]
jmp 0x1000c6197
shr rax, 8
movzx ecx, byte [rax + r11 + 0x2b20]
add ecx, 8
mov eax, dword [r11 + rdx*4 + 0x2ad0]
add r9, 2
sub eax, dword [r11 + rcx*4 + 0x2ad0]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
sub r10, 1
jne 0x1000c6142
mov eax, r8d
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.1000cd7d0
add rsp, 0xcc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret