Function at 0x140078aa0
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 - 0x70]
sub rsp, 0x170
mov rax, qword [0x14016d080]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
xor ebx, ebx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
lea r14, [0x14016e470]
nop dword [rax + rax]
mov eax, dword [rsi]
cmp dword [0x14016e468], eax
jle 0x140078b75
lea rcx, [0x14016e468]
call fcn.1400d04cc
cmp dword [0x14016e468], 0xffffffff
jne 0x140078b75
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [0x14016f7f4], 0xffffffff
mov dword [0x14016e474], eax
mov eax, 1
nop dword [rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [r14 + rax*4 + 4], edx
inc rax
cmp rax, 0x270
jb 0x140078b40
mov dword [0x14016e470], 0x270
lea rcx, [0x14016e468]
call fcn.1400d0460
mov rcx, r14
call fcn.140074290
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x50], cl
inc rbx
cmp rbx, 0x10
jb 0x140078b00
movzx eax, byte [rbp + 0x56]
and al, 0xf
or al, 0x40
mov byte [rbp + 0x56], al
movzx eax, byte [rbp + 0x58]
and al, 0x3f
or al, 0x80
mov byte [rbp + 0x58], al
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14015a5c8]
mov qword [rsp + 0x50], rax
lea rax, [0x14015a4e8]
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 + 0x30], 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 r15, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r15
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 r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], r14
mov qword [rbp - 0x30], 0
mov dword [rbp - 0x28], 0
lea rbx, [rbp + 0x50]
nop dword [rax]
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
call r8
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x48], Ordinal_50
lea rdx, [0x14005e130]
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]
movzx edx, byte [rbx]
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]
inc rbx
lea rax, [rbp + 0x60]
cmp rbx, rax
jne 0x140078c60
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14006a440
mov dword [rsp + 0x30], 7
mov r8, qword [rdi + 0x10]
cmp r8, 8
jb 0x140078ebd
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
movabs rsi, 0x2d2d2d2d2d2d2d2d
cmp rax, 1
jb 0x140078d2b
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x140078d14
mov rbx, qword [rdi]
add r8, 0xfffffffffffffff9
lea rcx, [rbx + 9]
lea rdx, [rbx + 8]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 8], sil
jmp 0x140078d39
mov r9d, 8
mov rcx, rdi
call fcn.140078ed0
mov r8, qword [rdi + 0x10]
cmp r8, 0xd
jb 0x140078ebd
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x140078d82
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x140078d6b
mov rbx, qword [rdi]
add r8, 0xfffffffffffffff4
lea rcx, [rbx + 0xe]
lea rdx, [rbx + 0xd]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xd], sil
jmp 0x140078d90
mov r9d, reloc.WS2_32.dll_listen
mov rcx, rdi
call fcn.140078ed0
mov r8, qword [rdi + 0x10]
cmp r8, 0x12
jb 0x140078ebd
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x140078dd9
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x140078dc2
mov rbx, qword [rdi]
add r8, 0xffffffffffffffef
lea rcx, [rbx + 0x13]
lea rdx, [rbx + 0x12]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x12], sil
jmp 0x140078de7
mov r9d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.140078ed0
mov r8, qword [rdi + 0x10]
cmp r8, 0x17
jb 0x140078ebd
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x140078e30
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x140078e19
mov rbx, qword [rdi]
add r8, 0xffffffffffffffea
lea rcx, [rbx + 0x18]
lea rdx, [rbx + 0x17]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x17], sil
jmp 0x140078e3f
mov r9d, reloc.WS2_32.dll_socket
mov rcx, rdi
call fcn.140078ed0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r15
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x4c], r8d
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0x68]
call fcn.14006a390
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, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400d00f0
lea r11, [rsp + 0x170]
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.14006ac90
int3