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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb8
mov qword [rax + 0x10], rsi
lea r9, [0x140132da0]
mov qword [rax - 0x28], r12
lea rcx, [0x140132d90]
xor r12d, r12d
lea rax, [rbp - 1]
mov rsi, rdx
mov qword [rbp - 1], r12
xor edx, edx
mov qword [rbp - 9], r12
mov qword [rbp - 0x11], r12
lea r8d, [r12 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
js 0x14009b85c
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], r12
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rcx, rdi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call rbx
mov r14d, eax
test eax, eax
js 0x14009b85c
mov rdx, rsi
mov qword [rsp + 0xa0], r15
lea rcx, str.SELECT_Namespace_Provider_User___PATH_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
call sym.ProcessHacker.exe_PhConcatStrings2
mov rdi, qword [rbp - 9]
mov rsi, rax
mov qword [rbp + 0x1f], rax
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0xa0]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov r8, qword [rsi + 8]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 0x30]
lea rdx, [0x1401663e8]
mov qword [rsp + 0x20], r12
mov rcx, rdi
call rbx
or r15, 0xffffffffffffffff
mov dword [rbp - 0x19], eax
mov r14d, eax
test eax, eax
js 0x14009b83f
mov rdi, qword [rbp - 0x11]
mov dword [rbp + 0x7f], r12d
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp + 0x7f]
mov edx, r15d
lea r9, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 1]
mov rcx, rdi
call rbx
test eax, eax
js 0x14009b83f
xor esi, esi
mov qword [rsp + 0xa8], r13
cmp dword [rbp + 0x7f], 0
je 0x14009b82f
mov rdi, qword [rbp - 0x21]
mov r13, rsi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 7]
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 0x14009b53d
mov rdi, qword [rbp + 0xf]
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009b4f0
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r13, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], si
test rdi, rdi
je 0x14009b533
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdi, qword [rbp - 0x21]
mov r12, rsi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 7]
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 0x14009b5cd
mov rdi, qword [rbp + 0xf]
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009b580
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r12, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], si
test rdi, rdi
je 0x14009b5c3
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdi, qword [rbp - 0x21]
mov r14, rsi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea r9, [rbp + 7]
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 0x14009b65d
mov rdi, qword [rbp + 0xf]
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009b610
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], si
test rdi, rdi
je 0x14009b653
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdi, qword [rbp - 0x21]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
xor eax, eax
lea r9, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rdx, str.__PATH
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call rbx
test eax, eax
js 0x14009b6ef
mov rdi, qword [rbp + 0xf]
mov rbx, r15
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14009b6a0
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 0x14009b6e5
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rbx, qword [rbp + 0x77]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x14009b76f
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, r12
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x14009b76f
mov rcx, qword [rbx + 0x18]
xor r8d, r8d
mov rdx, r14
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x14009b76f
mov rdi, qword [rbp - 9]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xc0]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rax, qword [rbp - 0x21]
xor ecx, ecx
mov r8, qword [rbp + 0x67]
xor r9d, r9d
mov rdx, qword [rsi + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call rbx
mov dword [rbp - 0x19], eax
test rsi, rsi
je 0x14009b78a
lea rcx, [rsi - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009b78a
call fcn.1400c8bc0
test r14, r14
je 0x14009b7a5
lea rcx, [r14 - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009b7a5
call fcn.1400c8bc0
test r12, r12
je 0x14009b7c1
lea rcx, [r12 - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009b7c1
call fcn.1400c8bc0
test r13, r13
je 0x14009b7dc
lea rcx, [r13 - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009b7dc
call fcn.1400c8bc0
mov rdi, qword [rbp - 0x21]
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 - 0x11]
xor esi, esi
mov dword [rbp + 0x7f], esi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp + 0x7f]
mov edx, r15d
lea r9, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
mov rcx, rdi
call rbx
test eax, eax
jns 0x14009b4a0
mov r14d, dword [rbp - 0x19]
mov rsi, qword [rbp + 0x1f]
mov r13, qword [rsp + 0xa8]
lea rcx, [rsi - 0x10]
lock xadd dword [rcx + 8], r15d
cmp r15d, 1
mov r15, qword [rsp + 0xa0]
jne 0x14009b85c
call fcn.1400c8bc0
mov rdi, qword [rbp - 0x11]
mov r12, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe8]
test rdi, rdi
je 0x14009b88a
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 0x14009b8a8
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 0x14009b8c6
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
mov eax, r14d
add rsp, 0xb8
pop r14
pop rdi
pop rbx
pop rbp
ret