Function at 0x1400521f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rsi
mov eax, 0x13d8
call fcn.1400f2b60
sub rsp, rax
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call fcn.1400f48c0
mov dword [rsp + 0x24], eax
mov edx, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140052230
mov rax, qword [0x140237bb8]
xor ebp, ebp
mov rsi, qword [0x140237bb0]
sub rax, rsi
mov dword [rsp + 0x20], 0x270
sar rax, 3
test rax, rax
je 0x140052491
movss xmm4, dword [0x140214ee0]
xorps xmm5, xmm5
mov qword [rsp + 0x13f0], rbx
mov ebx, ebp
mov qword [rsp + 0x13f8], rdi
mov qword [rsp + 0x1400], r14
mov r14d, ebp
mov qword [rsp + 0x13d0], r15
mov r15, qword [0x140237828]
movaps xmmword [rsp + 0x13c0], xmm6
movsd xmm6, qword [0x140214958]
nop
mov rdi, qword [0x140237bc8]
xorps xmm2, xmm2
mov rax, qword [0x140237be0]
movss xmm0, dword [rbx + rsi]
cvtps2pd xmm0, xmm0
mov ecx, dword [r14 + rax]
movss xmm1, dword [rbx + rdi]
cvtps2pd xmm1, xmm1
cvtsi2ss xmm2, ecx
mulsd xmm1, xmm6
addsd xmm1, xmm0
movss xmm0, dword [rbx + rsi + 4]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm3, xmm1
movss dword [rbx + rsi], xmm3
movss xmm1, dword [rbx + rdi + 4]
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm6
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm3
subss xmm1, xmm2
movss dword [rbx + rsi + 4], xmm0
comiss xmm5, xmm1
ja 0x140052346
mov rax, qword [r15 + 0x3e28]
movaps xmm0, xmm2
addss xmm0, xmm3
comiss xmm0, dword [rax + 0x18]
ja 0x140052346
movss xmm1, dword [rbx + rdi + 4]
jmp 0x1400523b2
movss xmm0, dword [rbx + rdi]
xorps xmm0, xmm4
movss dword [rbx + rdi], xmm0
lea rcx, [rsp + 0x20]
call fcn.140007060
mov r8d, eax
mov eax, 0x6b1490ab
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
cmp ecx, 0xb58a48
jae 0x140052353
mov eax, 0x6b1490ab
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 8
imul eax, eax, 0x169
sub r8d, eax
and r8d, 1
lea eax, [r8*2 - 1]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [rbx + rdi + 4], xmm1
movss xmm3, dword [rbx + rsi + 4]
movaps xmm0, xmm3
subss xmm0, xmm2
comiss xmm5, xmm0
ja 0x1400523d5
mov rax, qword [r15 + 0x3e28]
addss xmm2, xmm3
comiss xmm2, dword [rax + 0x1c]
jbe 0x14005243e
xorps xmm1, xmm4
movss dword [rbx + rdi + 4], xmm1
nop
lea rcx, [rsp + 0x20]
call fcn.140007060
mov r8d, eax
mov eax, 0x6b1490ab
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
cmp ecx, 0xb58a48
jae 0x1400523e0
mov eax, 0x6b1490ab
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 8
imul eax, eax, 0x169
sub r8d, eax
and r8d, 1
lea eax, [r8*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + rdi], xmm0
mov rcx, qword [0x140237bb8]
inc ebp
mov rsi, qword [0x140237bb0]
add rbx, 8
sub rcx, rsi
movsxd rax, ebp
sar rcx, 3
add r14, 4
cmp rax, rcx
jb 0x1400522c0
movaps xmm6, xmmword [rsp + 0x13c0]
mov r15, qword [rsp + 0x13d0]
mov r14, qword [rsp + 0x1400]
mov rdi, qword [rsp + 0x13f8]
mov rbx, qword [rsp + 0x13f0]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400f1ea0
add rsp, 0x13d8
pop rsi
pop rbp
ret