Function at 0x1400013f0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Log keystrokes via polling
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r12d, r12d
nop dword [rax]
mov ecx, 0x5a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14000152e
call fcn.140001340
mov ebx, eax
mov ecx, eax
call fcn.140001180
mov rsi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x58], 0x30
mov dword [rsp + 0x5c], 0x2b4
mov ecx, 8
call fcn.140001c20
mov r15, rax
mov qword [rsp + 0x78], rax
lea rdi, [rax + 8]
mov qword [rbp - 0x78], rdi
mov rax, qword [rsp + 0x58]
mov qword [r15], rax
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov ecx, 8
call fcn.140001c20
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rax + 8]
mov qword [rsp + 0x50], rcx
sub rdi, r15
mov r8, rdi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x212b208]
mov rcx, r14
call fcn.140001230
mov dword [rsp + 0x70], 0x9008
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r15, r15
je 0x14000152e
mov edx, 8
mov rcx, r15
call fcn.140001c5c
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14000162c
call fcn.140001340
mov ebx, eax
mov ecx, eax
call fcn.140001180
mov rsi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x60], 0x30
mov dword [rsp + 0x64], 0x2b4
mov ecx, 8
call fcn.140001c20
mov r15, rax
mov qword [rsp + 0x78], rax
lea rdi, [rax + 8]
mov qword [rbp - 0x78], rdi
mov rax, qword [rsp + 0x60]
mov qword [r15], rax
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov ecx, 8
call fcn.140001c20
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rax + 8]
mov qword [rsp + 0x50], rcx
sub rdi, r15
mov r8, rdi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x212b208]
mov rcx, r14
call fcn.140001230
mov dword [rsp + 0x74], 0x102a1
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rsp + 0x74]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r15, r15
je 0x14000162c
mov edx, 8
mov rcx, r15
call fcn.140001c5c
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x6c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000172b
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000172b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x44]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.ProcessHacker.exe
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14000175e
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000172b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x44]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.ProcessHacker.exe
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14000175e
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400016d0
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.140001970
mov rcx, rax
lea rdx, [0x140001b40]
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 0x140001430
mov ebx, dword [rbp - 0x68]
cmp ebx, 0xffffffff
je 0x14000172b
xor r9d, r9d
lea r8, [rbp + 0x2e0]
mov edx, 0x104
lea rcx, str.M.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x14000178f
lea rdx, str.Failed_to_get_the_full_path_of_the_DLL.
jmp 0x140001732
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400017b1
lea rdx, str.Failed_to_open_the_target_process.
jmp 0x140001732
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r8, eax
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x1400017f0
lea rdx, str.Failed_to_allocate_memory_in_the_target_process.
jmp 0x140001732
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r9, eax
mov qword [rsp + 0x20], r12
lea r8, [rbp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001831
lea rdx, str.Failed_to_write_the_DLL_path_into_the_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x1400018b5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400018f8
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001871
lea rdx, str.Failed_to_get_the_address_of_LoadLibraryA.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x1400018b5
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x1400018a7
lea rdx, str.Failed_to_create_a_remote_thread_in_the_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x1400018b5
lea rdx, str.DLL_injected_successfully_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001970
mov rcx, rax
lea rdx, [0x140001b40]
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 0x140001430
lea rdx, str.Failed_to_get_the_handle_to_kernel32.dll.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x1400018b5