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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10251f2a
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
mov edi, ecx
push 0xffffffffffffffff
push 0
mov dword [edi + 0x1c], eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x100f92bb
cmp eax, 0x80010119
jne 0x100f9572
push esi
lea esi, [edi + 4]
push esi
push 0x102705e0
push 0x17
push 0
push 0x10255c50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100f9571
mov esi, dword [esi]
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
lea ebx, [edi + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], eax
call fcn.10046590
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x100f9304
mov eax, dword [eax]
jmp 0x100f9306
xor eax, eax
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.100466e0
test esi, esi
js 0x100f9570
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x100f9570
lea eax, [edi + 0xc]
push eax
push 0x102704f4
push 0x17
push 0
push 0x10255c70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100f9570
push 0x10
call fcn.1006e6a7
mov ecx, dword [edi + 0x1c]
mov ebx, eax
add esp, 4
mov dword [ebx + 4], 0
lea edx, [ebx + 4]
mov dword [ebp + 8], ebx
mov dword [ebx], vtable.WM::GMProcessEventSink.0
mov dword [ebx + 0xc], ecx
push edx
mov byte [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x18]
test esi, esi
je 0x100f93d8
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp eax, vtable.WM::GMProcessEventSink.0
jne 0x100f9583
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100f93d8
test esi, esi
je 0x100f93d8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x14]
mov dword [edi + 0x18], ebx
lea esi, [edi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0xc]
push esi
push ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
lea ebx, [edi + 0x14]
push ebx
push 0x10255b90
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
mov eax, dword [edi + 8]
mov ebx, dword [ebx]
mov dword [ebp + 8], eax
push str.SELECT_FROM_Win32_Process
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x10], eax
call fcn.10046510
mov byte [ebp - 4], 3
mov esi, dword [eax]
test esi, esi
je 0x100f9439
mov esi, dword [esi]
jmp 0x100f943b
xor esi, esi
push 0x1026927c
lea ecx, [ebp - 0x14]
call fcn.10046510
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x100f9456
mov eax, dword [eax]
jmp 0x100f9458
xor eax, eax
push ebx
push 0
push 0x80
push esi
push eax
push dword [ebp + 8]
call dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.100466e0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.100466e0
test esi, esi
js 0x100f9570
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0x10]
push str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
mov eax, dword [ebx]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
call fcn.10046510
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x100f94b2
mov esi, dword [eax]
jmp 0x100f94b4
xor esi, esi
push 0x1026927c
lea ecx, [ebp - 0x14]
call fcn.10046510
mov byte [ebp - 4], 7
mov eax, dword [eax]
test eax, eax
je 0x100f94cf
mov eax, dword [eax]
jmp 0x100f94d1
xor eax, eax
push dword [ebp + 8]
push 0
push 0x80
push esi
push eax
push ebx
call dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.100466e0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100466e0
test esi, esi
js 0x100f9570
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0x1c]
push str.SELECT__FROM___InstanceDeletionEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
mov eax, dword [ebx]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
call fcn.10046510
mov byte [ebp - 4], 9
mov esi, dword [eax]
test esi, esi
je 0x100f9527
mov esi, dword [esi]
jmp 0x100f9529
xor esi, esi
push 0x1026927c
lea ecx, [ebp - 0x14]
call fcn.10046510
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x100f9544
mov eax, dword [eax]
jmp 0x100f9546
xor eax, eax
push dword [ebp + 8]
push 0
push 0x80
push esi
push eax
push ebx
call dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.100466e0
lea ecx, [ebp - 0x1c]
call fcn.100466e0
test esi, esi
js 0x100f9570
mov byte [edi + 0x20], 1
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push esi
call ecx
jmp 0x100f93d8