Function at 0x14001ed90
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov byte [rbp + 0x46], 0
mov word [rbp + 0x44], 0xfeeb
mov dword [rsp + 0x20], 0x40
mov r8d, 3
mov rcx, rdx
xor edx, edx
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x10], rax
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x44]
mov r9d, 3
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rbp + 0x38], 3
lea rax, str.Allocated_:_bytes_at_:_for_our_thread
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0x29
lea r14, [rbp + 0x18]
lea rdx, [rbp - 0x10]
lea rbx, [rbp + 0x38]
lea r9, [rbp + 0x10]
mov rcx, r14
mov r8, rbx
call fcn.14001f3b0
mov r8, qword [rbp + 0x28]
cmp qword [rbp + 0x30], 0x10
jb 0x14001ee44
mov r14, qword [rbp + 0x18]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, r14
call fcn.140016350
mov r14, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r14
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, r14
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
mov rax, qword [rbp + 0x30]
cmp rax, 0x10
jb 0x14001eebb
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001eeb6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001eff7
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14001f684
mov dword [rbp + 0x38], 0
mov r9, qword [rbp + 0x10]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14001efbd
mov rdi, rax
lea rax, str.Loop_thread_spawned_id__:08x_:
mov qword [rbp], rax
mov qword [rbp + 8], 0x23
lea rbx, [rbp + 0x18]
mov rdx, rbp
lea r8, [rbp + 0x38]
mov rcx, rbx
mov r9, r8
call fcn.14001f500
mov r8, qword [rbp + 0x28]
cmp qword [rbp + 0x30], 0x10
jb 0x14001ef2e
mov rbx, qword [rbp + 0x18]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.140016350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rbx
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
mov rax, qword [rbp + 0x30]
cmp rax, 0x10
jb 0x14001efa1
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001ef9c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001effd
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14001f684
mov qword [rsi], rdi
mov rax, qword [rbp + 0x10]
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdx, str.Could_not_create_loop_thread_in_process
lea rdi, [rbp + 0x18]
mov rcx, rdi
call fcn.140002590
lea rcx, [rbp - 0x48]
mov rdx, rdi
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
lea rcx, [rbp - 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3