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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x40], rax
movaps xmm8, xmm1
movaps xmm6, xmm0
mov ecx, dword [0x180078380]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov edi, 0xffffffff
mov esi, 1
lea r13, [0x180079050]
mov eax, dword [rdx + rax]
cmp dword [0x18007a3d8], eax
jle 0x180020c57
lea rcx, [0x18007a3d8]
call fcn.180052538
cmp dword [0x18007a3d8], 0xffffffff
jne 0x180020c57
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x18007a3d4], edi
mov dword [0x180079054], eax
mov r8d, esi
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [r13 + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x180020c20
mov dword [0x180079050], 0x270
lea rcx, [0x18007a3d8]
call fcn.1800524cc
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x28], xmm1
mov qword [rsp + 0x38], rax
movss dword [rsp + 0x20], xmm6
mov rbp, qword [rsp + 0x30]
comiss xmm8, xmm6
jb 0x180020cd7
movaps xmm0, xmm6
movaps xmm7, xmm6
movss xmm9, dword [0x1800684b0]
cmp rbp, qword [rsp + 0x38]
je 0x180020ca6
movss dword [rbp], xmm6
mov rbp, qword [rsp + 0x30]
add rbp, 4
mov qword [rsp + 0x30], rbp
movaps xmm6, xmm0
jmp 0x180020cc0
lea r8, [rsp + 0x20]
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.180021190
movaps xmm6, xmm7
mov rbp, qword [rsp + 0x30]
addss xmm6, xmm9
movss dword [rsp + 0x20], xmm6
movaps xmm0, xmm6
movaps xmm7, xmm6
comiss xmm8, xmm6
jae 0x180020c87
mov eax, 0x40
mov rbx, 0xffffffffffffffff
lea rax, [rax - 1]
shr rbx, 1
cmp rbx, rdi
ja 0x180020ce3
mov r15, qword [rsp + 0x28]
cmp r15, rbp
je 0x180020f68
lea r12, [r15 + 4]
cmp r12, rbp
je 0x180020f68
lea rdi, [rax - 1]
mov r8d, dword [0x180079050]
nop word [rax + rax]
lea r14, [rsi + 1]
nop dword [rax]
nop dword [rax + rax]
xor r10d, r10d
xor r11d, r11d
test rsi, rsi
je 0x180020efd
nop
mov rcx, rdi
shl r10, cl
add r10, r10
nop dword [rax]
cmp r8d, 0x270
jne 0x180020db5
lea r8, [0x180079058]
mov r9d, 0x270
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x180020d70
mov r8d, dword [0x180079050]
jmp 0x180020e9e
cmp r8d, 0x4e0
jb 0x180020e9e
mov r8d, 0x9c4
nop dword [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [r8 + r13 + 0x634]
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0xd50
jb 0x180020dd0
mov r8d, 0xd50
nop word [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [r8 + r13 - 0xd4c]
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0x1380
jb 0x180020e20
mov edx, dword [0x18007a3d0]
xor edx, dword [0x180079054]
btr edx, 0x1f
xor edx, dword [0x18007a3d0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x180079684]
mov dword [0x180079a10], ecx
xor r8d, r8d
mov dword [0x180079050], r8d
mov eax, r8d
mov ecx, dword [r13 + rax*4 + 4]
inc r8d
mov dword [0x180079050], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [0x18007a3d4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cmp rax, rbx
ja 0x180020d50
or r10, rax
mov rcx, rdi
shl r11, cl
add r11, r11
or r11, rbx
cmp r11, rsi
jb 0x180020d40
xor edx, edx
mov rax, r11
div r14
mov rcx, rax
xor edx, edx
mov rax, r10
div r14
cmp rax, rcx
jb 0x180020f26
xor edx, edx
mov rax, r11
div r14
cmp rdx, rsi
jne 0x180020d30
xor edx, edx
mov rax, r10
div r14
cmp rdx, rsi
je 0x180020f4e
movss xmm0, dword [r12]
mov eax, dword [r15 + rdx*4]
mov dword [r12], eax
movss dword [r15 + rdx*4], xmm0
mov r8d, dword [0x180079050]
mov rsi, r14
add r12, 4
cmp r12, rbp
jne 0x180020d20
mov rbp, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
lea rax, [rbp - 4]
movss xmm6, dword [rax]
mov qword [rsp + 0x30], rax
test r15, r15
je 0x180020fb6
mov rdx, qword [rsp + 0x38]
sub rdx, r15
and rdx, 0xfffffffffffffffc
mov rax, r15
cmp rdx, 0x1000
jb 0x180020fae
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180020fae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.180052964
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180052470
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret