Function at 0x180040190
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x12d8]
mov eax, 0x13d0
call fcn.180043a50
sub rsp, rax
cmp qword [0x180053ab0], 0
jne 0x1800403d7
mov rax, qword [0x180052548]
mov qword [0x180053ab0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x24], eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
lea rbx, [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rbx]
mov dword [rbp + 0x12e0], ecx
cmp rdx, rax
je 0x180040218
mov dword [rdx], ecx
add rdx, 4
mov qword [rsp + 0x30], rdx
jmp 0x180040233
lea r8, [rbp + 0x12e0]
lea rcx, [rsp + 0x28]
call fcn.18003c9b4
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
add rbx, 4
lea rcx, [rsp + 0x28]
cmp rbx, rcx
jne 0x1800401fe
or dword [rbp + 0x12c4], 0xffffffff
mov ecx, 0x1571
mov dword [rsp + 0x44], ecx
mov ebx, 1
mov edx, ebx
mov r8d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x44], ecx
add rdx, rbx
cmp rdx, r8
jb 0x18004025e
mov dword [rsp + 0x40], r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.180040a2c
mov r8d, 0x1388
lea rdx, [rsp + 0x40]
lea rcx, [0x180052580]
call sub.VCRUNTIME140.dll_memcpy
and qword [rbp + 0x12e8], 0
lea r8, [0x180047694]
lea rdx, str..DataSFSEPluginsBetterConsoleRandomizer.bin
lea rcx, [rbp + 0x12e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov r9, qword [rbp + 0x12e8]
test r9, r9
je 0x180040394
mov edi, 0x208
jmp 0x18004036c
mov rdx, qword [0x180053b50]
cmp rdx, qword [0x180053b58]
je 0x18004035b
lea rax, [rsp + 0x40]
mov ecx, 4
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, rbx
jne 0x1800402fb
mov rax, qword [rax]
mov qword [rdx], rax
add qword [0x180053b50], rdi
jmp 0x180040365
lea r8, [rsp + 0x40]
call fcn.180040ce8
mov r9, qword [rbp + 0x12e8]
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1800402e1
mov rcx, qword [rbp + 0x12e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800403d7
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800403d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800403d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042aec
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret