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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor esi, esi
mov qword [rax + 8], rbx
mov qword [rax - 0x20], rdi
lea r9, [0x140132da0]
mov qword [rax - 0x28], r13
mov r13, rdx
mov qword [rax - 0x30], r14
xor edx, edx
mov qword [rax - 0x38], r15
lea r8d, [rsi + 1]
lea rax, [rbp - 9]
mov qword [rbp - 9], rsi
mov r14, rcx
mov qword [rsp + 0x20], rax
lea rcx, [0x140132d90]
mov qword [rbp - 0x11], rsi
mov r15d, esi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x21], rsi
mov dword [rbp + 0x7f], esi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r12d, eax
test eax, eax
js 0x14009bbd1
mov rdi, qword [rbp - 9]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rdx, qword [r14 + 8]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call rbx
mov r12d, eax
test eax, eax
js 0x14009bbd1
mov rdx, qword [r13 + 8]
lea rcx, str.SELECT_clsid_FROM___Win32Provider_WHERE_Name___s
call sym.ProcessHacker.exe_PhFormatString
mov rdi, qword [rbp - 0x11]
mov r13, rax
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa0]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov r8, qword [r13 + 8]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 0x30]
lea rdx, [0x1401663e8]
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call rbx
or r14, 0xffffffffffffffff
mov r12d, eax
test eax, eax
js 0x14009bbbc
mov rdi, qword [rbp - 0x19]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
lea rax, [rbp + 0x7f]
mov edx, r14d
lea r9, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
mov rcx, rdi
call rbx
mov r12d, eax
test eax, eax
js 0x14009bae3
mov rdi, qword [rbp - 0x21]
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.CLSID
mov rcx, rdi
call rbx
test eax, eax
js 0x14009babc
mov rdi, qword [rbp + 0xf]
mov rbx, r14
nop
inc rbx
cmp word [rdi + rbx*2], si
jne 0x14009ba70
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r15, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [r15 + 8], rax
mov word [rax + rbx], si
test rdi, rdi
je 0x14009bab2
mov rcx, qword [r15 + 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 + 0x10]
mov rcx, rbx
call qword [sym.ProcessHacker.exe_PhDeleteCallback]
mov rcx, rdi
call rbx
test r15, r15
je 0x14009bae3
cmp qword [r15], rsi
je 0x14009bae3
xor al, al
jmp 0x14009bae5
mov al, 1
test al, al
jne 0x14009bba1
mov r8, qword [r15 + 8]
lea rax, [0x140158f98]
lea r9, [0x14013d0dc]
mov qword [rsp + 0x20], rax
lea rdx, str.CLSID_
mov ecx, 4
call sym.ProcessHacker.exe_PhConcatStrings
mov r9, rax
mov dword [rsp + 0x20], esi
mov edx, 0x20019
lea rcx, [rbp - 1]
mov r8, 0xfffffffffffffff9
mov rbx, rax
call sym.ProcessHacker.exe_PhOpenKey
mov r12d, eax
or r12d, 0x10000000
jl 0x14009bb8b
mov rcx, qword [rbp - 1]
xor edx, edx
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rsi, rax
test rax, rax
je 0x14009bb81
mov rcx, rax
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
test rax, rax
je 0x14009bb81
mov rcx, rsi
mov rsi, rax
test rcx, rcx
je 0x14009bb81
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009bb81
call fcn.1400c8bc0
mov rcx, qword [rbp - 1]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009bba1
call fcn.1400c8bc0
test r15, r15
je 0x14009bbbc
lea rcx, [r15 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14009bbbc
call fcn.1400c8bc0
lea rcx, [r13 - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x14009bbd1
call fcn.1400c8bc0
mov rdi, qword [rbp - 0x19]
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
test rdi, rdi
je 0x14009bc07
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]
test rdi, rdi
je 0x14009bc25
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 0x14009bc43
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 [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
test r12d, r12d
js 0x14009bc5f
mov rax, qword [rbp + 0x77]
mov qword [rax], rsi
mov eax, r12d
add rsp, 0xc0
pop r12
pop rsi
pop rbp
ret