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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140006f5e
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
nop
test eax, eax
js 0x140006f58
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [0x1400504b0]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1400504c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140006f58
mov rax, qword [rbp - 0x41]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
lea ecx, [r12 + 0x18]
call fcn.140049768
mov rbx, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x140006e7b
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140007266
jmp 0x140006e7e
mov rbx, r12
mov qword [rbp - 0x21], rbx
test rbx, rbx
je 0x140007271
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x41]
mov rax, rdi
call qword [0x14004fd98]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140006eff
mov rcx, qword [rbx]
test rcx, rcx
je 0x140006ee0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006ef2
call fcn.140049760
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140049760
nop
test edi, edi
js 0x140006f47
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140006f88
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14004fd98]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14004fd98]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140049740
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword ds:[rbp - 0x29], r12
mov rax, qword [rbp - 0x39]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140049768
mov rbx, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x140006fcd
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_LogonSession_WHERE_LogonType__2
call fcn.140049500
mov qword [rbx], rax
jmp 0x140006fd0
mov rbx, r12
mov qword [rbp + 0xf], rbx
test rbx, rbx
je 0x140007271
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.140049768
mov rdi, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x140007012
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400509d8]
call fcn.140049500
mov qword [rdi], rax
jmp 0x140007015
mov rdi, r12
mov qword ds:[rbp + 0x17], rdi
test rdi, rdi
je 0x14000725b
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x39]
mov rax, r14
call qword [0x14004fd98]
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140007097
mov rcx, qword [rdi]
test rcx, rcx
je 0x140007076
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140007089
nop
call fcn.140049760
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.140049760
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400070db
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400070b7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword ds:[rbx + 8]
test rcx, rcx
je 0x1400070ce
call fcn.140049760
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140049760
nop dword [rax + rax]
test esi, esi
js 0x140006f5e
mov qword [rbp - 0x11], r12
mov bl, 1
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140006f5e
nop dword [rax + rax]
mov qword [rbp - 0x19], r12
mov dword [rbp - 0x49], r12d
mov rax, qword [rcx]
lea rdx, [rbp - 0x49]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
mov rax, qword [rax + 0x20]
call qword [0x14004fd98]
mov edi, eax
cmp dword [rbp - 0x49], 0
je 0x14000722d
lea rcx, ds:[rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
test edi, edi
js 0x140007203
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.StartTime
mov rax, qword [rax + 0x20]
call qword [0x14004fd98]
test eax, eax
js 0x140007203
cmp word [rbp - 9], 8
jne 0x140007203
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
lea rax, [rbp + 0x2b]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x25]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x21]
lea r8, [rbp + 0x1f]
lea rdx, str._4hd_2hd_2hd_2hd_2hd_2hd
mov rcx, qword [rbp - 1]
call fcn.140006b30
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test bl, bl
jne 0x1400071f1
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x140007203
mov rax, qword [rbp - 0x21]
mov qword [rbp - 0x11], rax
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [r15], xmm0
xor bl, bl
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14004fd98]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x140007100
jmp 0x140007246
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140007246
mov rax, qword ds:[rcx]
mov rax, qword [rax + 0x10]
call qword [0x14004fd98]
test bl, bl
jne 0x140006f5e
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
jmp 0x140006f60
mov ecx, 0x8007000e
call fcn.1400494f0
nop
mov ecx, 0x8007000e
call fcn.1400494f0
nop
mov ecx, 0x8007000e
call fcn.1400494f0
int3