Function at 0x1400b6400
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r14d, r14d
mov rbx, rcx
mov r15d, r14d
mov qword [rbp - 1], r14
mov r13d, r14d
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], r14
call fcn.1400b5640
test rax, rax
je 0x1400b6921
lea r9, [rbp - 1]
mov rcx, rax
lea r8, [0x1401f5370]
lea rdx, [0x1401f5360]
call fcn.1400fb1e0
test eax, eax
js 0x1400b68d8
mov qword [rsp + 0xf8], rsi
lea rcx, str.RootCIMV2
mov qword [rsp + 0x108], r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp - 1]
lea rdx, [rbp - 9]
mov qword [rsp + 0x40], rdx
mov rsi, rax
mov qword [rbp - 0x21], rax
xor r9d, r9d
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov rax, qword [rcx]
mov rdx, rsi
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r14
mov rax, qword [rax + 0x18]
call qword [case.0x1400f654f.0]
mov r12, 0xffffffffffffffff
test eax, eax
js 0x1400b689e
lea rdx, [rbx + 0xf8]
mov qword [rsp + 0x100], rdi
lea rcx, str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
call sym.ProcessHacker.exe_PhConcatStrings2
lea rcx, [0x1401ebd48]
mov r13, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x31], rax
mov rbx, rax
test r13, r13
je 0x1400b651a
mov rcx, qword [r13 + 8]
jmp 0x1400b651d
mov rcx, r14
nop dword [rax]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp - 9]
lea rdx, [rbp - 0x11]
mov rdi, rax
mov qword [rbp - 0x29], rax
mov qword [rsp + 0x28], rdx
mov r9d, 0x30
mov r8, rdi
mov qword [rsp + 0x20], r14
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 0xa0]
call qword [case.0x1400f654f.0]
nop dword [rax + rax]
test eax, eax
js 0x1400b687a
mov rdx, qword [0x1402418f0]
mov ecx, 0x10
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140241998]
mov edx, 4
mov r15, rax
mov dword [rax], r14d
lea r8d, [rdx + 4]
mov dword [rax + 4], 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rbp + 0x1f], r14d
lea rdx, [rbp + 0x1f]
mov qword [r15 + 8], rax
lea r9, [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
mov r8d, 1
mov qword [rsp + 0x20], rdx
mov edx, r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400b687a
xor ebx, ebx
cmp dword [rbp + 0x1f], 0
je 0x1400b686e
mov rcx, qword [0x140241998]
mov edx, 4
lea r8d, [rdx + 0x1c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xorps xmm0, xmm0
lea rcx, [rbp + 7]
mov r14, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], rbx
lea rdx, str.Namespace
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400b6695
mov rdi, qword [rbp + 0xf]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400b6640
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
xor ecx, ecx
mov qword [rax], rbx
add rax, 0x10
mov qword [rsi + 8], rax
mov word [rax + rbx], cx
test rdi, rdi
je 0x1400b6685
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.140188690
lea rcx, [rbp + 7]
mov qword [r14 + 8], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], rbx
lea rdx, str.Provider
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400b6728
mov rdi, qword [rbp + 0xf]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400b66d3
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
xor ecx, ecx
mov qword [rax], rbx
add rax, 0x10
mov qword [rsi + 8], rax
mov word [rax + rbx], cx
test rdi, rdi
je 0x1400b6718
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.140188690
lea rcx, ds:[rbp + 7]
mov qword [r14], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], rbx
lea rdx, str.User
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400b67bd
mov rdi, qword [rbp + 0xf]
mov rbx, r12
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400b6766
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
xor ecx, ecx
mov qword [rax], rbx
add rax, 0x10
mov qword [rsi + 8], rax
mov word [rax + rbx], cx
test rdi, rdi
je 0x1400b67ad
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.140188690
lea rcx, [rbp + 7]
mov qword [r14 + 0x18], rsi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400b67f8
mov rdx, qword [r14]
test rdx, rdx
je 0x1400b67f8
lea r8, [rbp - 0x39]
mov qword [rbp - 0x39], rbx
call fcn.1400b6040
test eax, eax
js 0x1400b67f8
mov rax, qword [rbp - 0x39]
mov qword [r14 + 0x10], rax
mov eax, dword ds:[r15]
mov ecx, dword [r15 + 4]
cmp eax, ecx
jne 0x1400b682f
mov r8, qword [r15 + 8]
lea eax, [rcx + rcx]
mov rcx, qword [0x140241998]
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
lea rdx, [rbp + 0x1f]
mov rax, qword [r15 + 8]
lea r9, [rbp - 0x19]
mov qword [rsp + 0x20], rdx
mov r8d, 1
mov edx, r12d
mov qword [rax + rcx*8], r14
inc dword [r15]
mov rcx, qword [rbp - 0x11]
mov dword [rbp + 0x1f], ebx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
jns 0x1400b65d5
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x29]
mov rsi, qword [rbp - 0x21]
test rdi, rdi
je 0x1400b6888
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x100]
test rbx, rbx
je 0x1400b689e
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
test rsi, rsi
je 0x1400b68ae
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xf8]
test r13, r13
je 0x1400b68d0
lea rcx, [r13 - 0x10]
lock xadd dword [rcx + 8], r12d
cmp r12d, 1
jne 0x1400b68d0
call fcn.1400fbcc0
mov r12, qword [rsp + 0x108]
mov rcx, qword ds:[rbp - 0x11]
test rcx, rcx
je 0x1400b68f2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1400b6908
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400b691e
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f654f.0]
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret