Function at 0x14005a980
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 - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400f10c0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov ebx, r15d
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
lea r14, [0x1400f2870]
nop dword [rax]
mov eax, dword [rsi]
cmp dword [0x1400f2864], eax
jle 0x14005aa56
lea rcx, [0x1400f2864]
call fcn.1400c4e68
cmp dword [0x1400f2864], 0xffffffff
jne 0x14005aa56
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1400f3bf4], 0xffffffff
mov dword [0x1400f2874], eax
mov ecx, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [r14 + rcx*4 + 4], eax
inc rcx
cmp rcx, 0x270
jb 0x14005aa20
mov dword [0x1400f2870], 0x270
lea rcx, [0x1400f2864]
call fcn.1400c4dfc
mov rcx, r14
call fcn.14005b940
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x60], cl
inc rbx
cmp rbx, 0x10
jb 0x14005a9e0
movzx eax, byte [rbp + 0x66]
and al, 0xf
or al, 0x40
mov byte [rbp + 0x66], al
movzx eax, byte [rbp + 0x68]
and al, 0x3f
or al, 0x80
mov byte [rbp + 0x68], al
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400de750]
mov qword [rsp + 0x60], rax
lea rax, [0x1400de748]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
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 + 0x78]
lea rcx, [rsp + 0x60]
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 + 0x60]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
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_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
lea rbx, [rbp + 0x60]
nop dword [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x70]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x38], Ordinal_50
lea rdx, [0x140059a40]
lea rcx, [rsp + 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__::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 + 0x70]
cmp rbx, rax
jne 0x14005ab30
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x30], 0xa
movups xmmword [rsp + 0x38], xmm0
mov rcx, r15
mov edx, dword [rbp - 0x18]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x14005abe7
mov rax, qword [rbp - 0x48]
mov rbx, qword [rax]
test rbx, rbx
je 0x14005abe7
mov rax, qword [rbp - 0x68]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x20]
cmovb rbx, qword [rbp - 0x20]
sub rbx, r9
mov rcx, r9
jmp 0x14005ac19
test dl, 4
jne 0x14005ac45
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rbx, r15
test rdx, rdx
je 0x14005ac14
mov rax, qword [rbp - 0x70]
mov r9, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x14005ac19
mov r9, qword [rsp + 0x38]
test rcx, rcx
je 0x14005ac45
mov rcx, rdi
cmp rbx, 0xf
ja 0x14005ac3c
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14005ac45
mov rdx, rbx
call fcn.140007ad0
nop
mov dword [rsp + 0x30], 7
mov r8, qword [rdi + 0x10]
cmp r8, 8
jb 0x14005ae21
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
movabs rsi, 0x2d2d2d2d2d2d2d2d
cmp rax, 1
jb 0x14005aca0
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14005ac89
mov rbx, qword [rdi]
lea rcx, [rbx + 9]
add r8, 0xfffffffffffffff9
lea rdx, [rbx + 8]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 8], sil
jmp 0x14005acae
mov r9d, 8
mov rcx, rdi
call fcn.14005b7b0
mov r8, qword [rdi + 0x10]
cmp r8, 0xd
jb 0x14005ae21
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14005acf7
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14005ace0
mov rbx, qword [rdi]
lea rcx, [rbx + 0xe]
add r8, 0xfffffffffffffff4
lea rdx, [rbx + 0xd]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xd], sil
jmp 0x14005ad05
mov r9d, reloc.WS2_32.dll_listen
mov rcx, rdi
call fcn.14005b7b0
mov r8, qword [rdi + 0x10]
cmp r8, 0x12
jb 0x14005ae21
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14005ad4e
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14005ad37
mov rbx, qword [rdi]
lea rcx, [rbx + 0x13]
add r8, 0xffffffffffffffef
lea rdx, [rbx + 0x12]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x12], sil
jmp 0x14005ad5c
mov r9d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.14005b7b0
mov r8, qword [rdi + 0x10]
cmp r8, 0x17
jb 0x14005ae21
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14005ada5
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14005ad8e
mov rbx, qword [rdi]
lea rcx, [rbx + 0x18]
add r8, 0xffffffffffffffea
lea rdx, [rbx + 0x17]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x17], sil
jmp 0x14005adb4
mov r9d, reloc.WS2_32.dll_socket
mov rcx, rdi
call fcn.14005b7b0
nop
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x60], r14
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x5c], r8d
lea rcx, [rsp + 0x78]
call fcn.14005b430
lea rcx, [rbp - 0x80]
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 - 8]
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 + 0x70]
xor rcx, rsp
call fcn.1400c4af0
lea r11, [rsp + 0x180]
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.140005a20
int3