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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1470]
mov eax, 0x1570
call fcn.18011bb30
sub rsp, rax
mov rax, qword [0x18018f080]
xor rax, rsp
mov qword [rbp + 0x1460], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 0xf
jbe 0x180007090
mov rdi, qword [rdi]
lea rax, [0x1801735c0]
mov qword [rbp - 0x80], rax
lea rax, [0x18014c420]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x68], rax
mov byte [rbp + 0x14], 0
mov byte [rbp + 9], 0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x18], r14
mov rax, qword [0x180196fb0]
mov qword [rbp + 0xc], rax
mov qword [rbp], r14
lea r8d, [rbx + 0x22]
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1800117a0
test rax, rax
jne 0x18000715d
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1800071bf
lea rdx, str.Erro_ao_abrir_o_arquivo.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180012120
lea rdx, [0x1800122f0]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
jmp 0x180007545
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x80]
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 + 0xb8]
lea rcx, [rbp - 0x80]
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, [rbp - 0x80]
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]
xorps xmm0, xmm0
mov rsi, qword [rbp + 0xc0]
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r14
add rsi, qword [rbp + 0xb8]
je 0x180007289
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1800075b8
cmp rsi, 0x1000
jb 0x180007259
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1800075b2
call fcn.18011aed0
mov rcx, rax
test rax, rax
je 0x180007527
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180007261
mov rcx, rsi
call fcn.18011aed0
mov qword [rbp + 0xa0], rax
lea rdi, [rax + rsi]
mov qword [rbp + 0xb0], rdi
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xa8], rdi
jmp 0x180007290
mov rdi, qword [rbp + 0xa8]
mov esi, r14d
mov rcx, qword [rbp + 0xa0]
sub rdi, rcx
mov r8, rdi
test sil, 1
mov edx, 0xaa
je 0x1800072b0
mov edx, 0x55
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbp + 0xc0]
add r8, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp - 0x70]
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 - 0x70]
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]
inc esi
cmp esi, 7
jge 0x1800072ee
mov rdi, qword [rbp + 0xa8]
jmp 0x180007293
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1454], 0xffffffff
mov dword [rbp + 0xd4], eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rbp + rbx*4 + 0xd4], eax
inc rbx
cmp rbx, 0x270
jb 0x180007310
mov dword [rbp + 0xd0], 0x270
mov rdi, qword [rbp + 0xa8]
mov rbx, qword [rbp + 0xa0]
cmp rbx, rdi
je 0x180007370
nop
lea rcx, [rbp + 0xd0]
call fcn.180015140
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbx], cl
inc rbx
cmp rbx, rdi
jne 0x180007350
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 - 0x70]
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 + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub r8, rdx
lea rcx, [rbp - 0x70]
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 - 0x70]
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]
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 - 0x70]
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 + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub r8, rdx
lea rcx, [rbp - 0x70]
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 - 0x70]
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]
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 - 0x70]
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 + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub r8, rdx
lea rcx, [rbp - 0x70]
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 - 0x70]
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]
mov r8, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xa0]
sub r8, rcx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x40], rax
movaps xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
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 + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub r8, rdx
lea rcx, [rbp - 0x70]
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 - 0x70]
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 - 0x68]
call fcn.180011250
test rax, rax
jne 0x1800074ee
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
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 + 0xa0]
test rcx, rcx
je 0x180007545
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000752e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000752e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011b354
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r14
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx - 0x80], r15
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb8]
mov dword [rsp + rdx + 0x7c], r8d
lea rcx, [rbp - 0x68]
call fcn.1800102d0
lea rcx, [rbp - 0x60]
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 + 0x38]
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.18011aeb0
lea r11, [rsp + 0x1570]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1800026c0
nop
call fcn.180013e90
int3