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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor esi, esi
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000113f
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000113f
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x6c]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.ProcessHacker.exe
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140001172
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000113f
nop dword [rax + rax]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x6c]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.ProcessHacker.exe
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140001172
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010e0
lea rdx, str.Failed_to_find_the_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001330
mov rcx, rax
lea rdx, [0x140001500]
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 ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001030
mov ebx, dword [rsp + 0x48]
cmp ebx, 0xffffffff
je 0x14000113f
xor r9d, r9d
lea r8, [rsp + 0x390]
mov edx, 0x104
lea rcx, str.M.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1400011a5
lea rdx, str.Failed_to_get_the_full_path_of_the_DLL.
jmp 0x140001146
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011ca
lea rdx, str.Failed_to_open_the_target_process.
jmp 0x140001146
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
mov dword [rsp + 0x20], 0x40
inc eax
mov r9d, 0x3000
movsxd r8, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x14000120a
lea rdx, str.Failed_to_allocate_memory_in_the_target_process.
jmp 0x140001146
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8, [rsp + 0x390]
mov qword [rsp + 0x20], rsi
inc eax
mov rdx, rdi
movsxd r9, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000124d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_write_the_DLL_path_into_the_target_process.
jmp 0x1400012d0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001313
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000128d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_the_address_of_LoadLibraryA.
jmp 0x1400012d0
mov qword [rsp + 0x30], rsi
mov r9, rax
mov dword [rsp + 0x28], esi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x1400012c2
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_a_remote_thread_in_the_target_process.
jmp 0x1400012d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.DLL_injected_successfully_
call fcn.140001330
mov rcx, rax
lea rdx, [0x140001500]
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, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001030
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_the_handle_to_kernel32.dll.
jmp 0x1400012d0