Function at 0x140013410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov r10, qword [0x140152f38]
movss xmm4, dword [0x14013a248]
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
lea r9, [r10 + 0x120]
movaps xmmword [rsp + 0x10], xmm8
movss xmm1, dword [r9]
comiss xmm1, xmm4
movss xmm0, dword [r9 + 4]
jb 0x140013396
comiss xmm0, xmm4
jb 0x140013396
cvttss2si eax, xmm1
movd xmm1, eax
cvttss2si eax, xmm0
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r10 + 0x2228], xmm1
movss dword [r10 + 0x222c], xmm0
movss dword [r9 + 4], xmm0
movss dword [r9], xmm1
mov rax, r9
test r9, r9
jne 0x1400133a5
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
xorps xmm5, xmm5
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x1400133fa
comiss xmm1, xmm4
jb 0x1400133fa
lea rax, [r10 + 0x3c0]
mov rcx, rax
test rax, rax
jne 0x1400133d1
lea rcx, [r10 + 0x120]
movss xmm0, dword [rcx]
comiss xmm0, xmm4
movss xmm1, dword [rcx + 4]
jb 0x140013401
comiss xmm1, xmm4
jb 0x140013401
movss xmm0, dword [r9]
movss xmm1, dword [r9 + 4]
subss xmm0, dword [rax]
subss xmm1, dword [rax + 4]
jmp 0x140013407
lea rax, [r10 + 0x3c0]
xorps xmm0, xmm0
xorps xmm1, xmm1
movss dword [r10 + 0x3b4], xmm0
movss dword [r10 + 0x3b8], xmm1
movss xmm0, dword [r10 + 0x3b4]
ucomiss xmm0, xmm5
jp 0x140013430
jne 0x140013430
ucomiss xmm1, xmm5
jp 0x140013430
je 0x140013438
mov byte [r10 + 0x1fa7], 0
movsd xmm0, qword [r9]
lea rcx, [r10 + 0x128]
movss xmm6, dword [0x14013a5d0]
lea r11, [r10 + 0x434]
movss xmm8, dword [0x14013a5f0]
lea r8, [r10 + 0x3cc]
movss xmm7, dword [0x14013a230]
mov ebx, 5
movsd qword [rax], xmm0
xor edi, edi
lea esi, [rbx - 4]
nop dword [rax]
movzx eax, byte [rcx]
test al, al
je 0x1400134b9
comiss xmm5, dword [r11]
jbe 0x1400134b9
lea rdx, [rcx + 0x2f0]
mov byte [rdx], sil
xor al, al
mov byte [rcx + 0x2fa], al
movss xmm0, dword [r11]
movss dword [r11 + 0x14], xmm0
cmp byte [rcx], dil
je 0x1400134df
comiss xmm5, xmm0
jbe 0x1400134d7
movaps xmm0, xmm5
jmp 0x1400134e2
lea rdx, [rcx + 0x2f0]
mov byte [rdx], dil
test al, al
jne 0x140013497
movss xmm0, dword [r11]
comiss xmm0, xmm5
jb 0x140013497
movzx eax, sil
jmp 0x140013499
addss xmm0, dword [r10 + 0x18]
jmp 0x1400134e2
movaps xmm0, xmm7
movss dword [r11], xmm0
mov byte [rcx + 0x2f5], dil
cmp byte [rdx], dil
je 0x1400135e4
movsd xmm2, qword [r10 + 0x1c88]
movaps xmm0, xmm2
subsd xmm0, qword [r8 + 0x24]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [r10 + 0x30]
comiss xmm0, xmm1
jbe 0x1400135b6
mov rax, r9
test r9, r9
jne 0x14001352b
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x140013565
comiss xmm1, xmm4
jb 0x140013565
movss xmm0, dword [r9]
lea rax, [rsp]
movss xmm1, dword [r9 + 4]
subss xmm0, dword [r8 - 4]
subss xmm1, dword [r8]
movss dword [rsp], xmm0
movss dword [rsp + 4], xmm1
jmp 0x14001356f
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
movss xmm0, dword [rax]
movss xmm2, dword [rax + 4]
movss xmm1, dword [r10 + 0x34]
movzx eax, byte [rcx + 0x2f5]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm2, xmm0
comiss xmm1, xmm2
xorps xmm2, xmm2
cmova eax, esi
mov byte [rcx + 0x2f5], al
movss xmm0, dword [r10 + 0x30]
xorps xmm0, xmm8
addss xmm0, xmm0
cvtss2sd xmm2, xmm0
movsd qword [r8 + 0x24], xmm2
movsd xmm0, qword [r9]
movsd qword [r8 - 4], xmm0
movzx eax, byte [rcx + 0x2f5]
mov byte [rcx + 0x304], al
mov qword [r8 + 0x90], rdi
mov dword [r11 + 0x50], edi
jmp 0x14001369f
cmp byte [rcx], dil
je 0x1400136a4
mov rax, r9
test r9, r9
jne 0x1400135fc
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x140013638
comiss xmm1, xmm4
jb 0x140013638
movss xmm0, dword [r9]
lea rax, [rsp + 0x68]
movss xmm1, dword [r9 + 4]
subss xmm0, dword [r8 - 4]
subss xmm1, dword [r8]
movss dword [rsp + 0x68], xmm0
movss dword [rsp + 0x6c], xmm1
jmp 0x140013642
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
movss xmm2, dword [rax]
movss xmm3, dword [rax + 4]
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
andps xmm2, xmm6
andps xmm3, xmm6
addss xmm1, xmm0
movss xmm0, dword [r11 + 0x50]
maxss xmm0, xmm1
movss dword [r11 + 0x50], xmm0
movss xmm0, dword [r8 + 0x90]
maxss xmm0, xmm2
movss dword [r8 + 0x90], xmm0
movss xmm0, dword [r8 + 0x94]
maxss xmm0, xmm3
movss dword [r8 + 0x94], xmm0
cmp byte [rcx], dil
jne 0x1400136b4
cmp byte [rcx + 0x2fa], dil
jne 0x1400136b4
mov byte [rcx + 0x304], dil
cmp byte [rdx], dil
je 0x1400136c0
mov byte [r10 + 0x1fa7], dil
add r11, 4
add r8, 8
inc rcx
sub rbx, rsi
jne 0x140013480
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x10]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret