Function at 0x1400410f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x12e0]
mov eax, 0x13e0
call fcn.1400b7920
sub rsp, rax
mov rax, qword [0x140480c38]
xor rax, rsp
mov qword [rbp + 0x12d0], rax
mov r15, rcx
mov dword [rsp + 0x38], 0
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x14004114a
imul rax, rax, 0x64
jmp 0x140041168
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r12d, 0xffffffff
mov dword [rsp + 0x44], eax
mov rdx, rax
mov dword [rbp + 0x12c4], r12d
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x44], edx
inc rax
cmp rax, 0x270
jb 0x140041181
mov r14, qword [r15 + 0x10]
lea r9, [rsp + 0x38]
mov dword [rsp + 0x40], 0x270
mov edx, 0x108
mov r8d, 4
movsxd rsi, dword [r14 + 0x3c]
add rsi, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140041716
lea rax, [rsp + 0x40]
mov qword [rsp + 0x1418], rdi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x16], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 4], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x10], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0xc], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 6], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x14], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 8], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x28], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x2c], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x58], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x5e], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x3c], eax
mov edi, 0x40
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov ecx, edi
mov rax, rbx
nop word [rax + rax]
dec rcx
shr rax, 1
cmp rax, r12
ja 0x1400413c0
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140016140
mov qword [rsi + 0x30], rax
mov rcx, rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, rbx
dec rcx
shr rax, 1
cmp rax, r12
ja 0x1400413f3
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140016140
mov qword [rsi + 0x78], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
dec rdi
shr rbx, 1
cmp rbx, r12
ja 0x140041420
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
call fcn.140016140
mov qword [rsi + 0x70], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x80], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x44], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x46], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov byte [rsi + 0x1a], al
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov byte [rsi + 0x1b], al
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x42], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x48], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x4a], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x84], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x38], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x1c], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x54], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x50], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x20], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x24], eax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov word [rsi + 0x5c], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r12d
call fcn.140015f50
mov dword [rsi + 0x4c], eax
lea r9, [rsp + 0x38]
movsxd rcx, dword [r14 + 0x3c]
mov edx, 0x108
add rcx, qword [r15 + 0x10]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x1418]
test eax, eax
je 0x14004173d
mov al, 1
mov rcx, qword [rbp + 0x12d0]
xor rcx, rsp
call fcn.1400b7590
mov rbx, qword [rsp + 0x1420]
add rsp, 0x13e0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140007ad0
lea rdx, [0x140461cb8]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3