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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.140101910
sub rsp, rax
mov rax, qword [0x140173b40]
xor rax, rsp
mov qword [rbp + 0x13e0], rax
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbp + 0x13d4], 0xffffffff
mov dword [rbp + 0x54], eax
lea eax, [r14 + 1]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 + 0x54], edx
inc rax
cmp rax, 0x270
jb 0x140081370
mov dword [rbp + 0x50], 0x270
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140118308]
mov qword [rsp + 0x50], rax
lea rax, [0x140118310]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r15, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r14d
lea rdx, [0x14005c420]
lea rcx, [rsp + 0x60]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov dl, 0x30
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::fill_char____ptr64]
mov edi, r14d
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
test edi, edi
je 0x140081470
mov dl, 0x3a
lea rcx, [rsp + 0x60]
call fcn.140012e50
lea rcx, [rsp + 0x28]
call fcn.14002c4f0
mov ebx, eax
shl rbx, 8
shr rbx, 0x20
mov edx, 2
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
mov r8, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
mov rdx, qword [r8 + 8]
call qword [r8]
mov edx, ebx
lea rcx, [rsp + 0x60]
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]
inc edi
cmp edi, 6
jl 0x140081460
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov dword [rsp + 0x20], 0xa
movups xmmword [rsp + 0x30], xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140081537
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140081534
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rdi, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rbx, rax
cmp rax, qword [rbp - 0x30]
cmovb rbx, qword [rbp - 0x30]
sub rbx, rdi
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x140081577
mov ecx, dword [rbp - 0x28]
test cl, 4
jne 0x14008156d
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x14008156d
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov rdi, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rbx, rax
sub rbx, rdi
jmp 0x140081577
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14008158b
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14002f980
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x4c], r8d
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x68]
call fcn.14002e8a0
lea rcx, [rsp + 0x68]
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 + 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 - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rbp + 0x13e0]
xor rcx, rsp
call fcn.140101380
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret