Function at 0x10011468c
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 [0x100152198]
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 0x1001146dd
xor eax, eax
jmp 0x100114948
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 0x100114756
movzx eax, byte [r9 + r8]
jmp 0x1001147dc
cmp byte [r9 + r8], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r11 + rax]
jae 0x1001147a2
cmp ecx, r15d
jge 0x100114773
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x100114791
cmp ecx, r14d
jge 0x10011478b
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x100114791
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r9 + r8]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x1001147d8
cmp ecx, r15d
jge 0x1001147b0
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1001147ce
cmp ecx, r14d
jge 0x1001147c8
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1001147ce
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 0x100114809
movzx eax, byte [r8 + r9]
jmp 0x10011488f
cmp byte [r8 + r9], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r10 + rax]
jae 0x100114855
cmp ecx, r15d
jge 0x100114826
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x100114844
cmp ecx, r14d
jge 0x10011483e
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x100114844
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r8 + r9]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x10011488b
cmp ecx, r15d
jge 0x100114863
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x100114881
cmp ecx, r14d
jge 0x10011487b
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x100114881
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 0x100114733
mov ebp, dword [rsp + 0x20]
xor r8d, r8d
lea eax, [rbp*8 + 0x100]
cmp eax, r8d
jbe 0x100114945
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 0x1001148e7
movzx edx, byte [rax + r11 + 0x3370]
jmp 0x1001148f7
shr rax, 8
movzx edx, byte [rax + r11 + 0x3370]
add edx, 8
movzx eax, word [rsp + r9 + 0x670]
cmp ax, bx
movzx eax, ax
jae 0x100114913
movzx ecx, byte [rax + r11 + 0x3370]
jmp 0x100114923
shr rax, 8
movzx ecx, byte [rax + r11 + 0x3370]
add ecx, 8
mov eax, dword [r11 + rdx*4 + 0x3320]
add r9, 2
sub eax, dword [r11 + rcx*4 + 0x3320]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
sub r10, 1
jne 0x1001148ce
mov eax, r8d
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.10011be80
add rsp, 0xcc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret