Function at 0x140005114
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 [0x14003f030]
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.140001b00
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 0x1400051a1
lea esi, [r12 + 1]
lea rdx, str.Expected_2_arguments__pid__dll_name_.
jmp 0x140005492
mov rcx, qword [r14 + 8]
call fcn.14000f0d0
mov r15d, eax
test eax, eax
jne 0x1400051c0
lea esi, [rax + 2]
lea rdx, str.Invalid_pid.
jmp 0x140005492
mov ebx, 0x105
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400095b0
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.14000f690
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 0x14000544d
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.140002720
mov rcx, rax
call fcn.140001b00
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 0x1400052b1
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.140002720
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140001160
mov rcx, rax
mov edx, ebx
call fcn.1400028e0
mov rdi, rax
lea rdx, [0x14002bb70]
jmp 0x140005497
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.140002720
mov rcx, rax
call fcn.140001b00
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 0x14000531b
lea esi, [rax + 5]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_write_to_memory_in_pid:
jmp 0x140005274
lea rdx, str.WriteProcessMemory_in_pid:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002720
mov rcx, rax
call fcn.140001b00
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 0x14000537c
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 0x140005293
lea rdx, str.loadLibraryAddress:
mov rcx, rdi
call fcn.140001160
mov rcx, rax
mov edx, r15d
call fcn.140002720
mov rcx, rax
call fcn.140001b00
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 0x1400053d9
lea esi, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error._Unable_to_CreateRemoteThread._Error_code:
jmp 0x140005372
lea rdx, str.Waiting_for_LoadLibraryA_to_complete.
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b00
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005416
mov esi, 8
lea rdx, str.WaitForSingleObject_LoadLibraryA_thread__timed_out.
jmp 0x140005497
cmp eax, 0xffffffff
jne 0x140005432
mov esi, 9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.WaitForSingleObject_LoadLibraryA_thread__failed._Error_code:
jmp 0x140005372
lea rdx, str.Ok__finished_dll_injection.
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b00
xor esi, esi
jmp 0x1400054a8
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.140002720
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140001160
mov rcx, rax
mov edx, ebx
call fcn.1400028e0
mov rdi, rax
lea rdx, [0x14002bb70]
mov r14, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140001160
mov rcx, rax
call fcn.140001b00
nop
test r14, r14
je 0x1400054d5
test r12, r12
je 0x1400054cc
test r13d, r13d
je 0x1400054cc
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.140007f70
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