Function at 0x14009bc70
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x98
mov qword [rax + 8], rsi
lea r9, [0x140132da0]
mov qword [rax - 0x38], r14
mov rsi, rcx
xor r14d, r14d
lea rax, [rbp - 1]
xor edx, edx
mov qword [rbp - 1], r14
lea rcx, [0x140132d90]
mov qword [rbp - 9], r14
mov qword [rbp + 0x7f], r14
lea r8d, [r14 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14009c0bf
mov rdi, qword [rbp - 1]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.rootCIMV2
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call rbx
test eax, eax
js 0x14009c0bf
mov qword [rsp + 0x90], r12
lea rdx, [rsi + 0xf8]
lea rcx, str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
mov qword [rsp + 0x88], r13
call sym.ProcessHacker.exe_PhConcatStrings2
mov rdi, qword [rbp - 9]
mov r13, rax
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0xa0]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov r8, qword [r13 + 8]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea r9d, [r14 + 0x30]
xor esi, esi
lea rdx, [0x1401663e8]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call rbx
or r12, 0xffffffffffffffff
test eax, eax
js 0x14009c094
mov rdx, qword [0x1401967f8]
lea ecx, [rsi + 0x10]
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140196670]
lea edx, [rsi + 4]
lea r8d, [r14 + 8]
mov r15, rax
mov dword [rax], esi
mov dword [rax + 4], 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [r15 + 8], rax
mov rdi, qword [rbp + 0x7f]
mov dword [rbp + 0x6f], esi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp + 0x6f]
mov edx, r12d
lea r9, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 1]
mov rcx, rdi
call rbx
test eax, eax
js 0x14009c098
nop dword [rax + rax]
cmp dword [rbp + 0x6f], 0
je 0x14009c098
mov rcx, qword [0x140196670]
mov edx, 4
lea r8d, [rdx + 0x1c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov rdi, qword [rbp + 0x77]
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Namespace
mov rcx, rdi
call rbx
test eax, eax
js 0x14009beb5
mov rdi, qword [rbp + 0x17]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009be60
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
test rdi, rdi
je 0x14009bea5
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 0xf]
mov qword [r14 + 8], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
mov rdi, qword [rbp + 0x77]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Provider
mov rcx, rdi
call rbx
test eax, eax
js 0x14009bf45
mov rdi, qword [rbp + 0x17]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009bef1
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
test rdi, rdi
je 0x14009bf36
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 0xf]
mov qword [r14], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
mov rdi, qword [rbp + 0x77]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x140166420]
mov rcx, rdi
call rbx
test eax, eax
js 0x14009bfd6
mov rdi, qword [rbp + 0x17]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009bf81
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
test rdi, rdi
je 0x14009bfc6
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 0xf]
mov qword [r14 + 0x18], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
mov rdi, qword [rbp + 0x77]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14009c015
mov rdx, qword [r14]
test rdx, rdx
je 0x14009c015
lea r8, [rbp + 7]
call fcn.14009b8e0
test eax, eax
js 0x14009c015
mov rax, qword [rbp + 7]
mov qword [r14 + 0x10], rax
mov eax, dword [r15]
mov ecx, dword [r15 + 4]
cmp eax, ecx
jne 0x14009c04b
mov r8, qword [r15 + 8]
lea eax, [rcx + rcx]
mov rcx, qword [0x140196670]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [r15 + 4], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [r15 + 8], rax
mov eax, dword [r15]
mov ecx, eax
mov rax, qword [r15 + 8]
mov qword [rax + rcx*8], r14
inc dword [r15]
mov rdi, qword [rbp + 0x7f]
mov dword [rbp + 0x6f], esi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp + 0x6f]
mov r8d, 1
lea r9, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov edx, r12d
mov rcx, rdi
call rbx
test eax, eax
jns 0x14009bdf0
jmp 0x14009c098
mov r15, qword [rbp + 0x6f]
lea rcx, [r13 - 0x10]
lock xadd dword [rcx + 8], r12d
mov r13, qword [rsp + 0x88]
cmp r12d, 1
mov r12, qword [rsp + 0x90]
jne 0x14009c0c3
call fcn.1400c8bc0
jmp 0x14009c0c3
mov r15, qword [rbp + 0x6f]
mov rdi, qword [rbp + 0x7f]
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xc0]
test rdi, rdi
je 0x14009c0f1
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x14009c10f
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 1]
test rdi, rdi
je 0x14009c12d
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
mov rax, r15
add rsp, 0x98
pop r15
pop rdi
pop rbx
pop rbp
ret