Function at 0x140049d50
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 [0x140060040]
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, [0x140061030]
nop dword [rax]
mov eax, dword [rsi]
cmp dword [0x140061024], eax
jle 0x140049e26
lea rcx, [0x140061024]
call fcn.14004ef58
cmp dword [0x140061024], 0xffffffff
jne 0x140049e26
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1400623b4], 0xffffffff
mov dword [0x140061034], 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 0x140049df0
mov dword [0x140061030], 0x270
lea rcx, [0x140061024]
call fcn.14004eeec
mov rcx, r14
call fcn.14004ab50
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x60], cl
inc rbx
cmp rbx, 0x10
jb 0x140049db0
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, [0x1400565d8]
mov qword [rsp + 0x60], rax
lea rax, [0x140056540]
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], 0x30
lea rdx, [0x140049d30]
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 0x140049f00
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
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 0x140049fb7
mov rax, qword [rbp - 0x48]
mov rbx, qword [rax]
test rbx, rbx
je 0x140049fb7
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 0x140049fe9
test dl, 4
jne 0x14004a015
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rbx, r15
test rdx, rdx
je 0x140049fe4
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 0x140049fe9
mov r9, qword [rsp + 0x38]
test rcx, rcx
je 0x14004a015
mov rcx, rdi
cmp rbx, 0xf
ja 0x14004a00c
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14004a015
mov rdx, rbx
call fcn.140049ba0
nop
mov dword [rsp + 0x30], 7
mov r8, qword [rdi + 0x10]
cmp r8, 8
jb 0x14004a1f1
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
movabs rsi, 0x2d2d2d2d2d2d2d2d
cmp rax, 1
jb 0x14004a070
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14004a059
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 0x14004a07e
mov r9d, 8
mov rcx, rdi
call fcn.14004a9c0
mov r8, qword [rdi + 0x10]
cmp r8, 0xd
jb 0x14004a1f1
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14004a0c7
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14004a0b0
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 0x14004a0d5
mov r9d, 0xd
mov rcx, rdi
call fcn.14004a9c0
mov r8, qword [rdi + 0x10]
cmp r8, 0x12
jb 0x14004a1f1
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14004a11e
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14004a107
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 0x14004a12c
mov r9d, 0x12
mov rcx, rdi
call fcn.14004a9c0
mov r8, qword [rdi + 0x10]
cmp r8, 0x17
jb 0x14004a1f1
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 1
jb 0x14004a175
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0xf
jbe 0x14004a15e
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 0x14004a184
mov r9d, 0x17
mov rcx, rdi
call fcn.14004a9c0
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.14004a800
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.14004ee90
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.14004a9a0
int3