Function at 0x140012c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov r10, qword [0x1401461d0]
movss xmm4, dword [0x14012c6d0]
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 0x140012bb6
comiss xmm0, xmm4
jb 0x140012bb6
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 0x140012bc5
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
xorps xmm5, xmm5
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x140012c1a
comiss xmm1, xmm4
jb 0x140012c1a
lea rax, [r10 + 0x3c0]
mov rcx, rax
test rax, rax
jne 0x140012bf1
lea rcx, [r10 + 0x120]
movss xmm0, dword [rcx]
comiss xmm0, xmm4
movss xmm1, dword [rcx + 4]
jb 0x140012c21
comiss xmm1, xmm4
jb 0x140012c21
movss xmm0, dword [r9]
movss xmm1, dword [r9 + 4]
subss xmm0, dword [rax]
subss xmm1, dword [rax + 4]
jmp 0x140012c27
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 0x140012c50
jne 0x140012c50
ucomiss xmm1, xmm5
jp 0x140012c50
je 0x140012c58
mov byte [r10 + 0x1fa7], 0
movsd xmm0, qword [r9]
lea rcx, [r10 + 0x128]
movss xmm6, dword [0x14012ca70]
lea r11, [r10 + 0x434]
movss xmm8, dword [0x14012ca90]
lea r8, [r10 + 0x3cc]
movss xmm7, dword [0x14012c6b8]
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 0x140012cd9
comiss xmm5, dword [r11]
jbe 0x140012cd9
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 0x140012cff
comiss xmm5, xmm0
jbe 0x140012cf7
movaps xmm0, xmm5
jmp 0x140012d02
lea rdx, [rcx + 0x2f0]
mov byte [rdx], dil
test al, al
jne 0x140012cb7
movss xmm0, dword [r11]
comiss xmm0, xmm5
jb 0x140012cb7
movzx eax, sil
jmp 0x140012cb9
addss xmm0, dword [r10 + 0x18]
jmp 0x140012d02
movaps xmm0, xmm7
movss dword [r11], xmm0
mov byte [rcx + 0x2f5], dil
cmp byte [rdx], dil
je 0x140012e04
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 0x140012dd6
mov rax, r9
test r9, r9
jne 0x140012d4b
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x140012d85
comiss xmm1, xmm4
jb 0x140012d85
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 0x140012d8f
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 0x140012ebf
cmp byte [rcx], dil
je 0x140012ec4
mov rax, r9
test r9, r9
jne 0x140012e1c
lea rax, [r10 + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm4
movss xmm1, dword [rax + 4]
jb 0x140012e58
comiss xmm1, xmm4
jb 0x140012e58
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 0x140012e62
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 0x140012ed4
cmp byte [rcx + 0x2fa], dil
jne 0x140012ed4
mov byte [rcx + 0x304], dil
cmp byte [rdx], dil
je 0x140012ee0
mov byte [r10 + 0x1fa7], dil
add r11, 4
add r8, 8
inc rcx
sub rbx, rsi
jne 0x140012ca0
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