Function at 0x18002a2d0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12d, edx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov r14d, ebx
mov qword [rsp + 0x50], rbx
mov esi, ebx
mov qword [rsp + 0x58], rbx
test rcx, rcx
jne 0x18002a352
lea rcx, str.InjectProcessByPid:_DllFileName__NULL_n
call sym.SafeBase64.dll_DbgPrintW
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18002a3c5
lea r8, [rsp + 0x6c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x74], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r15 + rax*2], bx
jne 0x18002a3d0
lea r13d, [rax*2 + 2]
mov r8d, r12d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18002a417
mov r8d, r12d
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rdi, rdi
jne 0x18002a435
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InjectProcessByPid:_hProcess__NULL_err_x_n
call sym.SafeBase64.dll_DbgPrintW
jmp 0x18002a539
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x180158788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
jne 0x18002a46b
lea rcx, str.InjectProcessByPid:_LoadLibThread__NULL_n
call sym.SafeBase64.dll_DbgPrintW
jmp 0x18002a539
movsxd r13, r13d
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, r13
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x18002a4a8
lea rcx, str.InjectProcessByPid:_lpRemoteBuffer__NULL_n
call sym.SafeBase64.dll_DbgPrintW
jmp 0x18002a539
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r15
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x18002a4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InjectProcessByPid:_WriteProcessMemory_error___x_n
call sym.SafeBase64.dll_DbgPrintW
jmp 0x18002a539
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
mov r9, r12
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18002a51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InjectProcessByPid:_CreateRemoteThread_error___x_n
call sym.SafeBase64.dll_DbgPrintW
jmp 0x18002a539
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [rsp + 0x40]
mov ecx, 1
cmove eax, ecx
mov ebx, eax
test r14, r14
je 0x18002a553
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rsi, rsi
je 0x18002a561
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18002a56f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, ebx
lea rcx, str.InjectProcessByPid:_bRet_x_Err_x_n
call sym.SafeBase64.dll_DbgPrintW
mov eax, ebx
jmp 0x18002a328