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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov rax, qword [0x14003f038]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rdx
mov ebx, ecx
lea rdx, str.Running_executable_to_inject_dll.
lea rdi, [0x140040420]
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b80
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r12d, r12d
mov qword [rsp + 0x58], r12
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea esi, [r12 + 3]
cmp ebx, esi
je 0x1400050d1
lea esi, [r12 + 1]
lea rdx, str.Expected_2_arguments__pid__dll_name_.
jmp 0x1400053c2
mov rcx, qword [r14 + 8]
call fcn.14000f090
mov r15d, eax
test eax, eax
jne 0x1400050f0
lea esi, [rax + 2]
lea rdx, str.Invalid_pid.
jmp 0x1400053c2
mov ebx, 0x105
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400094e0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0x104
mov r9, qword [r14 + 0x10]
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000f650
mov r8d, r15d
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000537d
mov qword [rsp + 0x48], r14
lea rdx, str.OpenProcess_with_pid:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
call fcn.140001b80
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, ebx
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x1400051e1
lea esi, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_allocate_memory_in_pid:
mov ebx, eax
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140001160
mov rcx, rax
mov edx, ebx
call fcn.1400028f0
mov rdi, rax
lea rdx, [0x14002bb70]
jmp 0x1400053c7
mov r13d, 0x105
mov dword [rsp + 0x60], r13d
mov r12, rbx
mov qword [rsp + 0x58], rbx
lea rdx, str.VirtualAllocEx_in_pid:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
call fcn.140001b80
and qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000524b
lea esi, [rax + 5]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_write_to_memory_in_pid:
jmp 0x1400051a4
lea rdx, str.WriteProcessMemory_in_pid:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
call fcn.140001b80
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400052ac
lea esi, [rax + 6]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_get_LoadLibraryA_address._Error_code:
mov ebx, eax
mov rcx, rdi
jmp 0x1400051c3
lea rdx, str.loadLibraryAddress:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
call fcn.140001b80
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x140005309
lea esi, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_CreateRemoteThread._Error_code:
jmp 0x1400052a2
lea rdx, str.Waiting_for_LoadLibraryA_to_complete.
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b80
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005346
mov esi, 8
lea rdx, str.WaitForSingleObject_LoadLibraryA_thread__timed_out.
jmp 0x1400053c7
cmp eax, 0xffffffff
jne 0x140005362
mov esi, 9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.WaitForSingleObject_LoadLibraryA_thread__failed._Error_code:
jmp 0x1400052a2
lea rdx, str.Ok__finished_dll_injection.
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b80
xor esi, esi
jmp 0x1400053d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Unable_to_open_process_with_pid:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002730
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140001160
mov rcx, rax
mov edx, ebx
call fcn.1400028f0
mov rdi, rax
lea rdx, [0x14002bb70]
mov r14, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b80
nop
test r14, r14
je 0x140005405
test r12, r12
je 0x1400053fc
test r13d, r13d
je 0x1400053fc
movsxd r8, r13d
mov r9d, 0x8000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140007ea0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret