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

Disassembly:
push rbp
push rsi
mov eax, 0x13f8
call fcn.1400b7090
sub rsp, rax
mov rax, qword [0x14014f840]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
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 0x140051890
mov rax, qword [0x140150050]
xor ebp, ebp
mov rsi, qword [0x140150048]
sub rax, rsi
mov dword [rsp + 0x20], 0x270
sar rax, 3
test rax, rax
je 0x140051b06
mov qword [rsp + 0x1410], rbx
mov ebx, ebp
mov qword [rsp + 0x1418], rdi
mov qword [rsp + 0x1420], r14
mov qword [rsp + 0x13f0], r15
mov r15d, ebp
movaps xmmword [rsp + 0x13e0], xmm6
movss xmm6, dword [0x1400c1be0]
movaps xmmword [rsp + 0x13d0], xmm7
xorps xmm7, xmm7
movaps xmmword [rsp + 0x13c0], xmm8
movsd xmm8, qword [0x1400c8f88]
nop dword [rax]
mov rdi, qword [0x140150060]
xorps xmm2, xmm2
mov rax, qword [0x1401500d8]
movss xmm0, dword [rbx + rsi]
cvtps2pd xmm0, xmm0
mov r14d, dword [r15 + rax]
movss xmm1, dword [rbx + rdi]
cvtps2pd xmm1, xmm1
cvtsi2ss xmm2, r14d
mulsd xmm1, xmm8
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, xmm8
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm3
subss xmm1, xmm2
movss dword [rbx + rsi + 4], xmm0
comiss xmm7, xmm1
ja 0x1400519b9
movd xmm0, dword [0x140150044]
addss xmm2, xmm3
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
ja 0x1400519b9
movss xmm2, dword [rbx + rdi + 4]
jmp 0x140051a13
movss xmm0, dword [rbx + rdi]
lea rcx, [rsp + 0x20]
xorps xmm0, xmm6
movss dword [rbx + rdi], xmm0
call fcn.140050dc0
mov ecx, eax
imul rax, rcx, 0x169
cmp eax, 0x77
ja 0x1400519f8
nop
lea rcx, [rsp + 0x20]
call fcn.140050dc0
mov ecx, eax
imul rax, rcx, 0x169
cmp eax, 0x78
jb 0x1400519e0
shr rax, 0x20
and eax, 1
lea eax, [rax*2 - 1]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [rbx + rdi + 4], xmm2
movss xmm3, dword [rbx + rsi + 4]
movd xmm0, r14d
movaps xmm1, xmm3
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
comiss xmm7, xmm1
ja 0x140051a49
movd xmm0, dword [0x140150040]
movd xmm1, r14d
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
addss xmm1, xmm3
comiss xmm1, xmm0
jbe 0x140051aa2
xorps xmm2, xmm6
lea rcx, [rsp + 0x20]
movss dword [rbx + rdi + 4], xmm2
call fcn.140050dc0
mov ecx, eax
imul rax, rcx, 0x169
cmp eax, 0x77
ja 0x140051a88
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140050dc0
mov ecx, eax
imul rax, rcx, 0x169
cmp eax, 0x78
jb 0x140051a70
shr rax, 0x20
and eax, 1
lea eax, [rax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + rdi], xmm0
mov rcx, qword [0x140150050]
inc ebp
mov rsi, qword [0x140150048]
add rbx, 8
sub rcx, rsi
movsxd rax, ebp
sar rcx, 3
add r15, 4
cmp rax, rcx
jb 0x140051930
movaps xmm8, xmmword [rsp + 0x13c0]
movaps xmm7, xmmword [rsp + 0x13d0]
movaps xmm6, xmmword [rsp + 0x13e0]
mov r15, qword [rsp + 0x13f0]
mov r14, qword [rsp + 0x1420]
mov rdi, qword [rsp + 0x1418]
mov rbx, qword [rsp + 0x1410]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400b6b70
add rsp, 0x13f8
pop rsi
pop rbp
ret