Function at 0x14003b7f0
Capabilities:
Allocate or change rwx memory
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.140230e30
sub rsp, rax
mov rax, qword [0x140700d00]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
movzx esi, dl
call fcn.140036410
mov rdx, qword [rax]
mov eax, 1
mov dword [rsp + 0x54], edx
mov dword [rbp + 0x12d4], 0xffffffff
nop dword [rax]
nop dword [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x54], edx
inc rax
cmp rax, 0x270
jb 0x14003b860
mov rbx, qword [rdi + 0x10]
lea r9, [rsp + 0x40]
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 0x14003ba35
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 2], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 8], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 6], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x12], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x14], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x18], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0xc], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0xa], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x24], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x26], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x1a], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0x10], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140031ce0
mov word [rbx + 0xe], ax
test sil, sil
je 0x14003ba16
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 + 0x40]
mov rcx, qword [rdi + 0x10]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14003ba5d
mov al, 1
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.140230920
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 + 0x28]
call fcn.14001dab0
lea rdx, [0x140521848]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3