Function at 0x140001530
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 - 0x1480]
mov eax, 0x1580
call fcn.14004ea40
sub rsp, rax
mov rax, qword [0x14009c040]
xor rax, rsp
mov qword [rbp + 0x1470], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140051b28]
mov qword [rbp - 0x20], rax
lea rax, [0x140051bd0]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x78]
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 + 0x20], 2
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x20]
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 - 0x20]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x20], r15
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
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 - 8], rax
mov qword [rbp + 0x60], r14
mov dword [rbp + 0x68], r14d
lea rdx, str..Win32k
lea rcx, [rbp - 0x10]
call fcn.1400042b0
mov rsi, rax
movaps xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [0x140051990]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm0, xmmword [0x1400519a0]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [0x1400519b0]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [0x1400519c0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [0x1400519d0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm0, xmmword [0x1400519e0]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x1400519f0]
movsd qword [rbp - 0x30], xmm0
mov eax, dword [0x1400519f8]
mov dword [rbp - 0x28], eax
movzx eax, word [0x1400519fc]
mov word [rbp - 0x24], ax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov dword [rsp + 0x20], 6
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1464], 0xffffffff
mov dword [rbp + 0xe4], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 0xe4], edx
inc rcx
cmp rcx, 0x270
jb 0x1400016d0
mov dword [rbp + 0xe0], 0x270
mov ebx, 5
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x48], rax
mov edx, 0x3f
lea rcx, [rsp + 0x48]
call fcn.1400053f0
movzx r9d, word [rsp + rax*2 + 0x60]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
cmp rcx, rdx
jae 0x140001756
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], r14w
jmp 0x140001760
lea rcx, [rsp + 0x28]
call fcn.140004940
sub rbx, 1
jne 0x140001701
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140004e00
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400017cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov dword [rsp + 0x20], 0x12
mov ecx, dword [rbp + 0x68]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001815
mov rdx, qword [rbp + 0x38]
mov rdx, qword [rdx]
test rdx, rdx
je 0x140001815
mov rax, qword [rbp + 0x18]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x60]
cmovb rdx, qword [rbp + 0x60]
sub rdx, r9
jmp 0x14000183d
test cl, 4
jne 0x140001871
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001871
mov rax, qword [rbp + 0x10]
mov r9, qword [rax]
mov rax, qword [rbp + 0x48]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140001871
mov rcx, rdi
cmp rdx, 7
ja 0x14000186b
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x140001871
call fcn.140004c40
nop
mov rcx, qword [rbp - 0x20]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx - 0x20], r15
mov rcx, qword [rbp - 0x20]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx - 0x24], r8d
lea rcx, [rbp - 8]
call fcn.140003b10
lea rcx, [rbp]
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 + 0x78]
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, rdi
mov rcx, qword [rbp + 0x1470]
xor rcx, rsp
call fcn.14004d8e0
lea r11, [rsp + 0x1580]
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