Function at 0x140001380
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r14d, r14d
test eax, eax
je 0x14000141a
lea r8, [rsp + 0x48]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000140f
mov rax, qword [rsp + 0x48]
lea r9d, [r14 + 0x10]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000145c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Could_not_get_handle_to_process.
call fcn.1400028b0
mov rcx, rax
lea rdx, [0x140002a80]
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]
xor al, al
jmp 0x140001626
mov rax, qword [rdi + 0x10]
mov r9d, 0x1000
mov qword [rsp + 0x90], rbp
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0xa8], rsi
mov dword [rsp + 0x20], 4
lea rbp, [rax*2 + 2]
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1400014b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_allocate_memory_in_remote_process.
jmp 0x1400015bf
cmp qword [rdi + 0x18], 7
jbe 0x1400014bb
mov rdi, qword [rdi]
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_write_to_memory_in_remote_process.
jmp 0x1400015bf
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000153c
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_get_handle_to_Kernel32.
jmp 0x1400015bf
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov rcx, rbx
test rax, rax
jne 0x140001578
mov r9d, 0x8000
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_get_pointer_to_LoadLibraryW.
jmp 0x1400015bf
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x1400015df
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_create_thread_in_remote_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400028b0
mov rcx, rax
lea rdx, [0x140002a80]
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]
xor al, al
jmp 0x140001616
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbp, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400033a0
add rsp, 0x70
pop r14
pop rdi
pop rbx
ret