Function at 0x14009af50
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
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.1401dd570
sub rsp, rax
mov rax, qword [0x1405d4300]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov rdi, rcx
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x28]
movzx esi, dl
call fcn.14009a150
lea rcx, [rsp + 0x20]
mov r8, qword [rax]
mov qword [rsp + 0x20], r8
call fcn.140096470
mov dword [rsp + 0x54], eax
mov ecx, 1
mov dword [rbp + 0x12d4], 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul edx, edx, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
mov eax, edx
inc rcx
cmp rcx, 0x270
jb 0x14009afd0
mov rbx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x50], 0x270
mov r8d, 4
mov rcx, rbx
movsxd rdx, dword [rbx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14009b1a8
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 2], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 8], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 6], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x12], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x14], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x18], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0xc], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0xa], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x24], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x26], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x1a], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0x10], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400940c0
mov word [rbx + 0xe], ax
test sil, sil
je 0x14009b189
movsxd r8, dword [rbx + 0x3c]
xor edx, edx
mov rcx, qword [rdi + 0x10]
sub r8, 0x40
add rcx, 0x40
call sub.VCRUNTIME140.dll_memset
movsxd rdx, dword [rbx + 0x3c]
lea r9, [rsp + 0x48]
mov rcx, qword [rdi + 0x10]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14009b1d0
mov al, 1
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.1401dd5d0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x30]
call fcn.14008fbb0
lea rdx, [0x1404444c0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3