Function at 0x140002890
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 r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1401be0c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov r15d, 4
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov eax, dword [r15 + rdi]
cmp dword [0x1401c08f4], eax
jle 0x140002948
lea rcx, [0x1401c08f4]
call fcn.140115e20
cmp dword [0x1401c08f4], 0xffffffff
jne 0x140002948
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
or dword [0x1401c08e4], 0xffffffff
mov dword [0x1401bf564], eax
mov ecx, 0x270
mov r8d, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
lea rax, [0x1401bf564]
mov dword [rax + r8*4], edx
inc r8
cmp r8, rcx
jb 0x140002913
mov dword [0x1401bf560], ecx
lea rcx, [0x1401c08f4]
call fcn.140115db4
mov eax, dword [r15 + rdi]
cmp dword [0x1401c0900], eax
jle 0x140002986
lea rcx, [0x1401c0900]
call fcn.140115e20
cmp dword [0x1401c0900], 0xffffffff
jne 0x140002986
and dword [0x1401c08f8], 0
mov dword [0x1401c08fc], 0xf
lea rcx, [0x1401c0900]
call fcn.140115db4
mov ebx, 8
mov eax, dword [r15 + rdi]
cmp dword [0x1401c08f0], eax
jle 0x1400029c8
lea rcx, [0x1401c08f0]
call fcn.140115e20
cmp dword [0x1401c08f0], 0xffffffff
jne 0x1400029c8
mov dword [0x1401c08e8], ebx
mov dword [0x1401c08ec], 0xb
lea rcx, [0x1401c08f0]
call fcn.140115db4
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400031d4
nop
lea rdx, [0x140001cb8]
lea rcx, [rsp + 0x40]
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]
lea r15, [0x1401c08f8]
mov rcx, r15
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
sub rbx, 1
jne 0x140002a03
lea rdx, [0x140145164]
lea rcx, [rsp + 0x40]
call fcn.140003c48
mov ebx, 4
mov rcx, r15
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
sub rbx, 1
jne 0x140002a34
lea rdx, [0x1401452f0]
lea rcx, [rsp + 0x40]
call fcn.140003c48
mov ebx, 3
mov edi, ebx
mov rcx, r15
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
sub rdi, 1
jne 0x140002a67
lea rdx, [0x140145164]
lea rcx, [rsp + 0x40]
call fcn.140003c48
lea rcx, [0x1401c08e8]
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
mov rcx, r15
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
sub rbx, 1
jne 0x140002aac
lea rdx, [0x140145164]
lea rcx, [rsp + 0x40]
call fcn.140003c48
mov ebx, ntohl
mov rcx, r15
call fcn.140003bc0
mov edx, eax
lea rcx, [rsp + 0x40]
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]
sub rbx, 1
jne 0x140002add
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140003a04
nop
lea rcx, [rbp - 0x38]
call fcn.14000315c
lea rcx, [rbp - 0x38]
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 + 0x30]
xor rcx, rsp
call fcn.140115ce0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret