Function at 0x140052460
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 - 0x1470]
mov eax, 0x1570
call fcn.140056e50
sub rsp, rax
mov rax, qword [0x14006c100]
xor rax, rsp
mov qword [rbp + 0x1460], rax
movzx ebx, dl
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140060910]
mov qword [rbp - 0x30], rax
lea rax, [0x140060918]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x24], 2
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x58], r15d
test bl, bl
je 0x140052722
lea rdx, str..Win32k
lea rcx, [rbp - 0x20]
call fcn.140044310
mov r14, rax
movaps xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x140060810]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x140060820]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x140060830]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm0, xmmword [0x140060840]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm1, xmmword [0x140060850]
movaps xmmword [rbp - 0x60], xmm1
movaps xmm0, xmmword [0x140060860]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [0x140060870]
movsd qword [rbp - 0x40], xmm0
mov eax, dword [0x140060878]
mov dword [rbp - 0x38], eax
movzx eax, word [0x14006087c]
mov word [rbp - 0x34], ax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x24], 6
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbp + 0x1454], 0xffffffff
mov dword [rbp + 0xd4], eax
mov eax, 1
nop word [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 + 0xd4], edx
inc rax
cmp rax, 0x270
jb 0x140052610
mov dword [rbp + 0xd0], 0x270
mov edi, 5
movzx ebx, byte [rsp + 0x20]
nop word [rax + rax]
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x48], rax
mov edx, 0x3f
lea rcx, [rsp + 0x48]
call fcn.140046650
movzx r9d, word [rsp + rax*2 + 0x50]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
cmp rcx, rdx
jae 0x1400526a5
lea rax, [rcx + 1]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
cmp rdx, 7
cmova rax, qword [rsp + 0x28]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r15w
jmp 0x1400526b8
movzx r8d, bl
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140045050
sub rdi, 1
jne 0x140052650
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, r14
call fcn.140044ad0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140052722
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005271d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005271d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400566b4
mov rdx, rsi
lea rcx, [rbp - 0x18]
call fcn.140055af0
nop
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx - 0x30], r12
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx - 0x34], r8d
lea rcx, [rbp - 0x18]
call fcn.140046380
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rbp + 0x1460]
xor rcx, rsp
call fcn.140056750
lea r11, [rsp + 0x1570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret