Function at 0x14002f4e0
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 - 0x1400]
mov eax, 0x1500
call fcn.14003d980
sub rsp, rax
mov rax, qword [0x14004e040]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x13e4], 0xffffffff
mov dword [rbp + 0x64], eax
lea edx, [r15 + 1]
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x64], eax
inc rdx
cmp rdx, 0x270
jb 0x14002f540
mov dword [rbp + 0x60], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8d, 0x24
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
lea rcx, [rsp + 0x48]
call fcn.140031320
nop
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400442a0]
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 + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], 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], 4
mov ebx, 0x18
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
lea rcx, [rbp + 0x60]
call fcn.140031c50
mov ecx, eax
lea rax, [rcx + rcx*8]
shl rax, 2
cmp eax, 3
ja 0x14002f668
nop dword [rax]
lea rcx, [rbp + 0x60]
call fcn.140031c50
mov ecx, eax
lea rax, [rcx + rcx*8]
shl rax, 2
cmp eax, 4
jb 0x14002f650
shr rax, 0x20
lea rcx, [rsp + 0x48]
cmp r14, 0xf
cmova rcx, rsi
movsxd rdx, eax
movzx edx, byte [rdx + rcx]
lea rcx, [rsp + 0x70]
call fcn.140031150
sub rbx, 1
jne 0x14002f631
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], 0xa
movups xmmword [rsp + 0x30], xmm0
mov rcx, r15
mov edx, dword [rbp - 0x18]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x14002f6e3
mov rax, qword [rbp - 0x48]
mov rbx, qword [rax]
test rbx, rbx
je 0x14002f6e3
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 0x14002f715
test dl, 4
jne 0x14002f741
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rbx, r15
test rdx, rdx
je 0x14002f710
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 0x14002f715
mov r9, qword [rsp + 0x30]
test rcx, rcx
je 0x14002f741
mov rcx, rdi
cmp rbx, 0xf
ja 0x14002f738
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14002f741
mov rdx, rbx
call fcn.1400315b0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140030750
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_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]
nop
cmp r14, 0xf
jbe 0x14002f7bb
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14002f7b3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f7b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14003ca70
mov rax, rdi
mov rcx, qword [rbp + 0x13f0]
xor rcx, rsp
call fcn.14003c980
lea r11, [rsp + 0x1500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret