Function at 0x1403915b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbx
push rdi
push r13
sub rsp, 0x100
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [r11 - 0x20], rsi
mov rdi, rcx
mov qword [r11 - 0x28], r12
mov esi, r9d
movaps xmmword [r11 - 0x58], xmm7
mov r12, rdx
movaps xmm7, xmm2
mov dword [rsp + 0x44], r9d
call fcn.14035cd70
mov rcx, qword [rdi + 0x10]
mov r11, rax
mov qword [rsp + 0x58], rax
mov edi, dword [rcx + 4]
movzx r13d, word [rcx + 0xe]
mov eax, dword [rcx + 8]
imul r13d, edi
mov dword [rsp + 0x48], edi
add r13d, 0x1f
shr r13d, 3
and r13d, 0x1ffffffc
test eax, eax
js 0x140391628
neg r13d
cdq
movsxd r9, edi
mov ebx, eax
xor r10d, r10d
mov eax, dword [r12 + 4]
xor ebx, edx
sub ebx, edx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], ebx
mov r8d, r10d
test eax, eax
jle 0x14039167e
mov edx, r10d
nop dword [rax]
movsxd rdi, edx
add rdi, r11
test r9, r9
jle 0x140391662
xor eax, eax
mov rcx, r9
rep stosd dword [rdi], eax
mov esi, dword [r12 + 4]
inc r8d
add edx, r13d
mov dword [rsp + 0x40], esi
cmp r8d, esi
jl 0x140391650
mov esi, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
mov ecx, dword [r12 + 0xc]
cmp eax, ecx
jge 0x140391888
mov ebx, dword [rsp + 0x140]
mov edx, eax
mov qword [rsp + 0x130], rbp
mov qword [rsp + 0xe8], r14
imul edx, r13d
mov qword [rsp + 0xe0], r15
movaps xmmword [rsp + 0xd0], xmm6
mov dword [rsp + 0x44], edx
nop dword [rax]
movsxd rdi, edx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
add rdi, r11
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], rcx
mov r9d, esi
mov dword [rsp + 0x28], r10d
mov rcx, r12
movaps xmm2, xmm7
mov dword [rsp + 0x20], ebx
mov edx, eax
call fcn.140391a10
mov r15d, dword [r12]
xor r10d, r10d
mov r14d, r10d
mov ebp, r10d
mov ecx, r10d
test r15d, r15d
jle 0x140391732
mov rax, rdi
nop dword [rax]
nop word [rax + rax]
mov dword [rax], r10d
lea rax, [rax + 4]
mov r15d, dword [r12]
inc ecx
cmp ecx, r15d
jl 0x140391720
mov eax, dword [r12 + 8]
cmp r15d, eax
jge 0x140391823
movss xmm6, dword [rsp + 0x6c]
movsxd rax, r15d
lea rcx, [rax*4 + 1]
add rcx, rdi
mov qword [rsp + 0x50], rcx
nop dword [rax]
movd xmm0, r15d
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm6
jb 0x14039177d
nop dword [rax]
inc rbp
inc r14d
comiss xmm0, dword [rsp + rbp*4 + 0x6c]
jae 0x140391770
movss xmm6, dword [rsp + rbp*4 + 0x6c]
lea eax, [r14 + 1]
movss xmm1, dword [rsp + rbp*4 + 0x68]
movaps xmm2, xmm6
movsxd rcx, eax
movsxd rdx, r14d
mov eax, dword [rsp + rcx*4 + 0x90]
mov r9d, dword [rsp + rdx*4 + 0x90]
mov dword [rsp + 0x20], eax
call fcn.140391dc0
mov r8, qword [rsp + 0x50]
mov edi, eax
shr edi, 0x18
inc r15d
mov dword [r8 - 1], eax
shr eax, 0x10
movzx ecx, al
mov eax, 0x80808081
imul ecx, edi
mov byte [r8 + 2], dil
mul ecx
movzx ecx, byte [r8]
mov eax, 0x80808081
shr edx, 7
mov byte [r8 + 1], dl
imul ecx, edi
mul ecx
movzx ecx, byte [r8 - 1]
mov eax, 0x80808081
shr edx, 7
mov byte [r8], dl
imul ecx, edi
mul ecx
shr edx, 7
mov byte [r8 - 1], dl
add r8, 4
mov eax, dword [r12 + 8]
mov qword [rsp + 0x50], r8
cmp r15d, eax
jl 0x140391760
mov rdi, qword [rsp + 0x60]
xor r10d, r10d
movsxd rcx, dword [rsp + 0x48]
cdqe
mov r9, rcx
cmp rax, rcx
jge 0x14039183d
sub rcx, rax
lea rdi, [rdi + rax*4]
xor eax, eax
rep stosd dword [rdi], eax
mov eax, dword [rsp + 0x40]
mov edx, dword [rsp + 0x44]
inc eax
mov ecx, dword [r12 + 0xc]
add edx, r13d
mov r11, qword [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], edx
cmp eax, ecx
jl 0x1403916c0
mov ebx, dword [rsp + 0x4c]
movaps xmm6, xmmword [rsp + 0xd0]
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0x130]
movaps xmm7, xmmword [rsp + 0xc0]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xf8]
cmp ecx, ebx
jge 0x1403918d0
mov eax, ecx
movsxd r10, r13d
imul eax, r13d
movsxd rdx, eax
add rdx, r11
sub ebx, ecx
mov r8d, ebx
test r9, r9
jle 0x1403918c7
mov rdi, rdx
xor eax, eax
mov rcx, r9
rep stosd dword [rdi], eax
add rdx, r10
sub r8, 1
jne 0x1403918b8
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x100
pop r13
pop rdi
pop rbx
ret