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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
mov eax, 0x1560
call fcn.140006220
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1550], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov eax, esi
mov dword [rsp + 0x88], eax
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea r12, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea r15, [0x14000b088]
lea r14, [0x1400076f0]
lea rbx, [0x140007800]
test eax, eax
jne 0x140002d97
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x1544], 0xffffffff
mov dword [rsp + 0x1c4], eax
mov edx, 1
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x1c4], eax
inc rdx
cmp rdx, 0x270
jb 0x1400027b0
mov dword [rsp + 0x1c0], 0x270
lea rcx, [rsp + 0x1c0]
call fcn.140004af0
mov ecx, eax
lea rdx, [rcx + rcx*2]
add rdx, rdx
cmp edx, 3
ja 0x14000281b
nop dword [rax + rax]
lea rcx, [rsp + 0x1c0]
call fcn.140004af0
mov ecx, eax
lea rdx, [rcx + rcx*2]
add rdx, rdx
cmp edx, 4
jb 0x140002800
shr rdx, 0x20
inc edx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___int____ptr64]
lea rdx, [0x140003cf0]
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 edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xd0], r14
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or edi, 0x10
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xc0]
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 [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xc0], r13
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0xbc], edx
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0x140], rsi
mov dword [rsp + 0x148], esi
mov r14d, esi
mov dword [rsp + 0x24], r14d
cmp r14d, 0x3e8
jg 0x140002ce7
lea rdx, str.C:Users_timnagDesktop_test
lea rcx, [rsp + 0xd0]
call fcn.140003d30
mov edx, r14d
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___int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], 0xf
mov byte [rsp + 0xa0], 0
or edi, 2
mov dword [rsp + 0x20], edi
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x148]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140002995
mov rax, qword [rsp + 0x118]
mov r8, qword [rax]
test r8, r8
je 0x140002995
mov rax, qword [rsp + 0xf8]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0x140]
cmovb r8, qword [rsp + 0x140]
sub r8, rdx
jmp 0x1400029d2
test cl, 4
jne 0x1400029c8
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400029c8
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x128]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400029d2
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400029e4
lea rcx, [rsp + 0xa0]
call fcn.140003870
and edi, 0xfffffffd
or edi, 1
mov dword [rsp + 0x20], edi
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0xf
cmova rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
call fcn.140004d28
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140001850
or edi, 0xc
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], r15
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.140002420
movzx ebx, al
cmp dword [rsp + 0x90], 0
jne 0x140002dcb
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140002abe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ab9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ab9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005314
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test bl, bl
je 0x140002ae6
lea rdx, [0x140007674]
call fcn.140003d30
lea rdx, [0x140007670]
mov rcx, rax
call fcn.140003d30
jmp 0x140002b02
lea rdx, [0x140007678]
call fcn.140003d30
lea rdx, [0x140007670]
mov rcx, rax
call fcn.140003d30
nop
jmp 0x140002b24
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
xor r8d, r8d
lea rdx, [0x140007627]
lea rcx, [rsp + 0x30]
call fcn.1400043a0
nop
lea rcx, [rsp + 0xd8]
call fcn.140003710
mov ebx, dword [rsp + 0x148]
mov eax, ebx
and eax, 6
cmp al, 6
jne 0x140002b7d
mov qword [rsp + 0x140], rsi
or ebx, 0x20
mov r9, qword [rsp + 0x48]
jmp 0x140002c3e
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xf
jbe 0x140002b93
mov rax, qword [rsp + 0x30]
lea rdx, [rcx + 1]
jmp 0x140002baa
mov ecx, 0x11
call fcn.1400052d0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
mov edx, 0x11
mov r9d, 0xf
mov byte [rsp + 0x30], 0
mov r8, qword [rsp + 0x40]
add r8, rax
mov qword [rsp + 0x140], r8
test bl, 0x18
cmove r8, rax
add rdx, rax
mov rcx, qword [rsp + 0xf8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x118]
mov qword [rcx], r8
sub edx, r8d
mov rcx, qword [rsp + 0x130]
mov dword [rcx], edx
mov rcx, qword [rsp + 0xf0]
test bl, 4
je 0x140002c19
mov qword [rcx], rax
mov rcx, qword [rsp + 0x110]
mov qword [rcx], rax
mov rax, qword [rsp + 0x128]
mov dword [rax], esi
jmp 0x140002c3b
mov rdx, qword [rsp + 0x140]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x110]
mov qword [rcx], rax
sub edx, eax
mov rax, qword [rsp + 0x128]
mov dword [rax], edx
or ebx, 0x21
mov dword [rsp + 0x148], ebx
cmp r9, 0xf
jbe 0x140002c81
lea rdx, [r9 + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005314
xor r8d, r8d
lea rdx, [0x140007627]
lea rcx, [rsp + 0xa0]
call fcn.140003870
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0xf
jbe 0x140002cdf
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005314
inc r14d
jmp 0x1400028e8
lea rdx, str.Press_0_to_Repeat.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003d30
mov rcx, rax
lea rdx, [0x140007670]
call fcn.140003d30
lea rdx, [rsp + 0x88]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
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__::operator___int____ptr64____ptr64]
nop
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xc0], r13
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0xbc], edx
mov qword [rsp + 0xd8], r12
lea rcx, [rsp + 0xd8]
call fcn.140003710
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x88]
jmp 0x14000276f
xor eax, eax
mov rcx, qword [rsp + 0x1550]
xor rcx, rsp
call fcn.1400052b0
lea r11, [rsp + 0x1560]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x90]
call fcn.1400023c0
int3