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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140001db9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_target_process.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400023fc
mov rcx, rbx
mov qword [rsp + 0x1e8], r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov r12, rax
test rax, rax
jne 0x140001e0a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_load_DLL_locally.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400023f4
mov qword [rsp + 0x220], rdi
xor edx, edx
movsxd rdi, dword [rax + 0x3c]
mov r9d, 0x3000
add rdi, r12
mov qword [rsp + 0x1e0], r13
mov rcx, rsi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x20], 0x40
mov r8d, dword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov r13, rax
test rax, rax
jne 0x140001e8c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_in_target_process.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400023e4
mov r9d, dword [rdi + 0x54]
mov r8, r12
mov qword [rsp + 0x1d8], r14
mov rdx, r13
xor r14d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001ebf
lea rdx, str.Failed_to_write_DLL_headers_to_target_process.
jmp 0x140001fed
movzx ebx, r14w
cmp r14w, word [rdi + 6]
jae 0x140001f14
nop word [rax + rax]
movzx ecx, word [rdi + 0x14]
add rcx, rdi
movzx eax, bx
mov qword [rsp + 0x20], r14
lea rdx, [rax + rax*4]
mov eax, dword [rcx + rdx*8 + 0x24]
mov r8d, dword [rcx + rdx*8 + 0x2c]
add rax, r13
mov r9d, dword [rcx + rdx*8 + 0x28]
add r8, r12
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001fe6
inc bx
cmp bx, word [rdi + 6]
jb 0x140001ed0
mov qword [rsp + 0x1d0], r15
mov r15d, dword [rdi + 0x90]
add r15, 0xc
add r15, r13
mov eax, dword [r15]
test eax, eax
je 0x1400020ac
nop word [rax + rax]
mov edx, eax
lea r8, [rbp - 0x50]
add rdx, r13
mov qword [rsp + 0x20], r14
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x140002088
mov ebx, dword [r15 + 4]
add rbx, r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001fce
lea rdi, [rcx + r12]
mov rcx, r14
lea rdx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002037
mov r9d, 8
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
jne 0x140001f82
mov eax, dword [r15 + 0x14]
add r15, 0x14
test eax, eax
je 0x1400020a7
xor r14d, r14d
jmp 0x140001f40
lea rdx, str.Failed_to_write_section_to_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400023dc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_resolve_import:
call fcn.1400027a0
mov rcx, rax
lea rdx, [rdi + 2]
call fcn.1400027a0
mov rcx, rax
lea rdx, str._in_module:
call fcn.1400027a0
mov rcx, rax
lea rdx, [rbp - 0x50]
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400023d4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_load_module:
call fcn.1400027a0
mov rcx, rax
lea rdx, [rbp - 0x50]
jmp 0x140002285
mov rdi, qword [rsp + 0x48]
cmp dword [rdi + 0xb4], 0
je 0x1400021ca
mov r14d, dword [rdi + 0xb0]
mov eax, r13d
sub eax, dword [rdi + 0x30]
add r14, r13
mov dword [rsp + 0x40], eax
mov eax, dword [r14]
test eax, eax
je 0x1400021ca
mov r12d, dword [rsp + 0x40]
mov edx, 0xf000
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r14 + 4]
xor edi, edi
mov r15d, eax
add r15, r13
lea rax, [rcx - 8]
test rax, 0xfffffffffffffffe
jbe 0x1400021b0
xor r13d, r13d
mov r8d, 0x3000
mov ebx, r13d
nop dword [rax + rax]
movzx ecx, word [r14 + rbx*2 + 8]
movzx eax, cx
and ax, dx
cmp ax, r8w
jne 0x140002193
and ecx, 0xfff
mov qword [rsp + 0x20], r13
add rcx, rbx
lea r8, [rsp + 0x40]
mov r9d, 4
lea rdx, [r15 + rcx*4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [r14 + rbx*2 + 8]
lea r8, [rsp + 0x40]
add dword [rsp + 0x40], r12d
and eax, 0xfff
add rax, rbx
mov qword [rsp + 0x20], r13
mov r9d, 4
mov rcx, rsi
lea rdx, [r15 + rax*4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, 0xf000
mov r8d, 0x3000
mov ecx, dword [r14 + 4]
inc edi
mov ebx, edi
lea rax, [rcx - 8]
shr rax, 1
cmp rbx, rax
jb 0x140002120
mov r13, qword [rsp + 0x50]
mov eax, ecx
add r14, rax
mov eax, dword [r14]
test eax, eax
jne 0x1400020f0
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
mov r8d, 0x30
mov rcx, r13
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002240
mov rdx, qword [rsp + 0x78]
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002240
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140002263
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_erase_PE_header_in_target_process.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400022c8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_thread_snapshot.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400023d4
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140002394
mov r8d, dword [rbp - 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000238b
mov r9d, dword [rdi + 0x28]
xor eax, eax
mov qword [rsp + 0x30], rax
add r9, r13
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140002382
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_remote_thread.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400023d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Manual_mapping_completed_successfully.
call fcn.1400027a0
lea rdx, [0x140002970]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov al, 1
mov r15, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x220]
mov r13, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1e8]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400031f0
add rsp, 0x1f0
pop rsi
pop rbx
pop rbp
ret