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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x14a0]
mov eax, 0x15a0
call fcn.140004ac0
sub rsp, rax
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x1490], rax
mov qword [rbp - 0x80], rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rbp - 0x68], r15
lea r8, str.USERPROFILE
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x140001f54
lea rcx, [rsp + 0x38]
call fcn.140002c60
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x140001974
lea rax, [rcx + 9]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140001955
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 9
lea rdx, str.Desktop_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 9], 0
jmp 0x140001994
mov qword [rsp + 0x20], 9
lea r9, str.Desktop_
mov edx, 9
mov rcx, rdi
call fcn.140003580
mov rdi, rax
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov edi, 8
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400019f7
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003bac
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], r15
mov rsi, qword [rbp - 0x60]
lea r12, str.1234567890
mov r14d, 0x80000000
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
or edi, 1
mov dword [rsp + 0x30], edi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1484], 0xffffffff
mov dword [rbp + 0x104], eax
mov edx, 1
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x104], eax
inc rdx
cmp rdx, 0x270
jb 0x140001a60
mov dword [rbp + 0x100], 0x270
mov ebx, 8
lea rcx, [rbp + 0x100]
call fcn.140003960
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 5
ja 0x140001aca
nop dword [rax + rax]
lea rcx, [rbp + 0x100]
call fcn.140003960
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 6
jb 0x140001ab0
shr rax, 0x20
sub rax, r14
xor rax, 0xffffffff80000000
movzx r9d, byte [rax + r12]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
cmp rcx, rdx
jae 0x140001b0e
lea rax, [rcx + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x38]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001b18
lea rcx, [rsp + 0x38]
call fcn.140003410
sub rbx, 1
jne 0x140001a91
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140001b62
lea rax, [rcx + 4]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x38]
mov dword [rax + rcx], 0x7478742e
mov byte [rax + rcx + 4], bl
lea rax, [rsp + 0x38]
jmp 0x140001b81
mov qword [rsp + 0x20], 4
lea r9, str..txt
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140003580
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 2
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140001bf5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f33
call fcn.140003bac
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rdx, qword [rbp - 0x50]
sub rax, rdx
movups xmm0, xmmword [rbp - 0x78]
movq r14, xmm0
cmp rax, r14
jb 0x140001f8a
lea r12, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova r12, rsi
lea r13, [rbp + 0xe0]
mov rsi, qword [rsp + 0x58]
psrldq xmm0, 8
movq rax, xmm0
mov qword [rbp - 0x78], rax
cmp rax, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea r15, [rdx + r14]
mov ebx, 0xf
lea rdi, [rsp + 0x58]
cmp r15, rbx
jbe 0x140001d12
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001cb2
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140001ce2
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001ccc
xor edi, edi
jmp 0x140001d0d
cmp rcx, 0x1000
jb 0x140001d01
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001f84
mov rcx, rax
call fcn.140003b70
test rax, rax
je 0x140001f3a
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001d09
call fcn.140003b70
mov rdi, rax
mov rdx, qword [rbp - 0x50]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rbx
mov r8, rdx
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x50]
add rcx, rdi
mov r8, r14
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
mov edi, dword [rsp + 0x30]
or edi, 4
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.140003000
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], r13
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140001dc5
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f41
call fcn.140003bac
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], r15b
mov rbx, qword [rbp - 0x80]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001dec
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140003730
lea rcx, [rbp - 0x28]
call fcn.140002f40
test rax, rax
jne 0x140001e25
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
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 - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r13
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
cmp qword [rbp + 0x58], 0
je 0x140001e7d
lea rcx, [rbp + 0x48]
mov rax, qword [rbp - 0x10]
cmp qword [rax], rcx
jne 0x140001e7d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x28]
mov dword [rax], edx
cmp byte [rbp + 0x54], 0
je 0x140001e8c
lea rcx, [rbp - 0x28]
call fcn.140002f40
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001ee2
inc rdx
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001eda
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f48
mov rcx, rsi
call fcn.140003bac
mov rbx, qword [rsp + 0x78]
inc rbx
mov qword [rsp + 0x78], rbx
cmp rbx, 0x64
jb 0x140001a06
mov rax, qword [rbp - 0x48]
cmp rax, 0xf
jbe 0x140001f54
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140003bac
mov rcx, qword [rbp + 0x1490]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x15a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001110
nop
call fcn.1400011b0
int3