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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1470]
mov eax, 0x1570
call fcn.18011c0c0
sub rsp, rax
mov rax, qword [0x18018f080]
xor rax, rsp
mov qword [rbp + 0x1460], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1800100e0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1800063d2
lea rdx, str.Erro_ao_abrir_o_arquivo_para_substitui
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1800123e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x1800063b0
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.180014790
lea rdx, [0x1800125c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
jmp 0x180006603
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1454], 0xffffffff
mov dword [rbp + 0xd4], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0xd4], eax
inc rdx
cmp rdx, 0x270
jb 0x180006420
mov dword [rbp + 0xd0], 0x270
mov dword [rbp + 0xa8], 0
mov dword [rbp + 0xac], 0xff
xorps xmm0, xmm0
xor eax, eax
mov rbx, qword [rbp + 0xb8]
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rax
add rbx, qword [rbp + 0xb0]
je 0x1800064fc
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x180006677
cmp rbx, 0x1000
jb 0x1800064cc
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x180006671
call fcn.18011b460
mov rcx, rax
test rax, rax
je 0x1800065e1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800064d4
mov rcx, rbx
call fcn.18011b460
mov qword [rbp + 0x90], rax
lea rdi, [rax + rbx]
mov qword [rbp + 0xa0], rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x98], rdi
jmp 0x180006503
mov rdi, qword [rbp + 0x98]
mov rbx, qword [rbp + 0x90]
cmp rbx, rdi
je 0x18000652d
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xa8]
call fcn.180012310
mov byte [rbx], al
inc rbx
cmp rbx, rdi
jne 0x180006510
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::seekp_class_std::fpos_struct__Mbstatet_____ptr64]
mov r8, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x90]
sub r8, rdx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
lea rcx, [rbp - 0x78]
call fcn.180011d50
test rax, rax
jne 0x1800065a8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov bl, 1
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x180006603
mov rdx, qword [rbp + 0xa0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800065e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800065e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011b8e4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], 0
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb8]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rbp - 0x78]
call fcn.180010ee0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x1460]
xor rcx, rsp
call fcn.18011b440
lea r11, [rsp + 0x1570]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.180002d90
nop
call fcn.180014770
int3