Function at 0x100114198
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 [0x100151198]
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 0x1001141e9
xor eax, eax
jmp 0x100114454
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 0x100114262
movzx eax, byte [r9 + r8]
jmp 0x1001142e8
cmp byte [r9 + r8], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r11 + rax]
jae 0x1001142ae
cmp ecx, r15d
jge 0x10011427f
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x10011429d
cmp ecx, r14d
jge 0x100114297
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x10011429d
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r9 + r8]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x1001142e4
cmp ecx, r15d
jge 0x1001142bc
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x1001142da
cmp ecx, r14d
jge 0x1001142d4
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x1001142da
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 0x100114315
movzx eax, byte [r8 + r9]
jmp 0x10011439b
cmp byte [r8 + r9], 7
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [r10 + rax]
jae 0x100114361
cmp ecx, r15d
jge 0x100114332
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x100114350
cmp ecx, r14d
jge 0x10011434a
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x100114350
sar ecx, 0x11
add cl, 0x22
movzx eax, byte [r8 + r9]
movzx ecx, cl
lea eax, [rax + rcx*8 + 0x100]
jmp 0x100114397
cmp ecx, r15d
jge 0x10011436f
mov cl, byte [rcx + rdi + 0x47c]
jmp 0x10011438d
cmp ecx, r14d
jge 0x100114387
mov rax, rcx
sar rax, 9
mov cl, byte [rax + rdi + 0x47c]
add cl, 0x12
jmp 0x10011438d
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 0x10011423f
mov ebp, dword [rsp + 0x20]
xor r8d, r8d
lea eax, [rbp*8 + 0x100]
cmp eax, r8d
jbe 0x100114451
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 0x1001143f3
movzx edx, byte [rax + r11 + 0x3370]
jmp 0x100114403
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 0x10011441f
movzx ecx, byte [rax + r11 + 0x3370]
jmp 0x10011442f
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 0x1001143da
mov eax, r8d
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.10011b980
add rsp, 0xcc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret