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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4386cb
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x44e3ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40b5c9
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40acd7
push eax
push 3
jmp 0x40b5cc
mov dword [ebp - 0x2d4], 0
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 1
push eax
push 0x43f1cc
push 1
push 0
push 0x43f1bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40ad0c
push eax
push 4
jmp 0x40b5cc
lea eax, [ebx + 0x78]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.0040b600
push str.ROOTCIMv2
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00402580
add esp, 0x14
mov dword [ebp - 0x2c4], 0
cmp dword [ebx + 0xec], 8
lea esi, [ebx + 0xd8]
mov eax, dword [ebp - 0x2d4]
mov edi, esi
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x2d8], ecx
jb 0x40ad6d
mov edi, dword [esi]
cmp dword [ebx + 0xa4], 8
lea edx, [ebx + 0x90]
jb 0x40ad7e
mov edx, dword [edx]
cmp dword [ebp - 0x274], 8
lea eax, [ebp - 0x2c4]
push eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x288]
cmovae ecx, dword [ebp - 0x288]
push 0
push 0
push 0x80
push 0
push edi
push edx
push ecx
push eax
call dword [ebp - 0x2d8]
test eax, eax
jns 0x40adc0
push eax
push 5
jmp 0x40b5cc
mov edx, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x304], 0
cmp edx, 8
jb 0x40adea
mov ecx, dword [esi]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40adf0
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x304], ecx
cmp edx, 8
jb 0x40ae0c
mov esi, dword [esi]
cmp dword [ebx + 0xbc], 8
lea ecx, [ebx + 0xa8]
mov dword [ebp - 0x308], esi
mov eax, ecx
jb 0x40ae25
mov eax, dword [ecx]
mov dword [ebp - 0x318], eax
jb 0x40ae2f
mov ecx, dword [ecx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae32
sub ecx, edx
sar ecx, 1
cmp dword [ebx + 0xd4], 8
mov dword [ebp - 0x314], ecx
lea ecx, [ebx + 0xc0]
mov eax, ecx
jb 0x40ae5a
mov eax, dword [ecx]
mov dword [ebp - 0x310], eax
jb 0x40ae64
mov ecx, dword [ecx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae67
push 0
lea eax, [ebp - 0x318]
mov dword [ebp - 0x300], 2
push eax
push 3
push 6
push 0xffffffffffffffff
push 0xffffffffffffffff
sub ecx, edx
push 0xffffffffffffffff
push dword [ebp - 0x2c4]
sar ecx, 1
mov dword [ebp - 0x30c], ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40aeb1
push eax
push 6
jmp 0x40b5cc
push str.Win32_Process
lea ecx, [ebp - 0x2f4]
call fcn.004079b0
push str.Create
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.004079b0
mov dword [ebp - 0x2f0], 0
mov eax, dword [ebp - 0x2c4]
mov edi, dword [ebp - 0x2f4]
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
test edi, edi
je 0x40aefc
mov ecx, dword [edi]
jmp 0x40aefe
xor ecx, ecx
push 0
lea esi, [ebp - 0x2f0]
push esi
push 0
push 0
push ecx
push eax
call edx
test eax, eax
jns 0x40af1b
push eax
push 0
jmp 0x40b5cc
mov dword [ebp - 0x2ec], 0
mov eax, dword [ebp - 0x2f0]
mov esi, dword [ebp - 0x2d8]
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
test esi, esi
je 0x40af42
mov ecx, dword [esi]
jmp 0x40af44
xor ecx, ecx
push 0
lea edi, [ebp - 0x2ec]
push edi
push 0
push ecx
push eax
call edx
mov edi, dword [ebp - 0x2f4]
test eax, eax
jns 0x40af65
push eax
push 0
jmp 0x40b5cc
mov dword [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x2ec]
lea edx, [ebp - 0x2d0]
push edx
push 0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 9
call dword [ecx + 0x3c]
test eax, eax
jns 0x40af94
push eax
push 0
jmp 0x40b5cc
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x240]
call fcn.00406d60
push str.___command_install
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xa
call fcn.004093c0
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x228]
add eax, 0x18
push eax
call fcn.00406d60
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x258]
push str.___snapshot__
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0xc
push eax
call fcn.00402510
add esp, 0x18
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call fcn.00409390
lea ecx, [ebp - 0x270]
call fcn.00408230
lea ecx, [ebp - 0x258]
call fcn.00408230
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xa
call fcn.00408230
lea eax, [ebx + 0x60]
push eax
lea eax, [ebp - 0x258]
push str.___apiport
push eax
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xe
call fcn.00409390
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xa
call fcn.00408230
mov ebx, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x228]
lea eax, [ebx + 0x30]
push eax
call fcn.00406d60
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x270]
push str.___cert_file__
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0x10
push eax
call fcn.00402510
add esp, 0x18
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x240]
push eax
call fcn.00409390
lea ecx, [ebp - 0x258]
call fcn.00408230
lea ecx, [ebp - 0x270]
call fcn.00408230
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xa
call fcn.00408230
lea eax, [ebx + 0x48]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406d60
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x270]
push str.___key_file__
push eax
call fcn.00402640
push 0x43addc
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0x13
push eax
call fcn.00402510
add esp, 0x18
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x14
call fcn.00409390
lea ecx, [ebp - 0x258]
call fcn.00408230
lea ecx, [ebp - 0x270]
call fcn.00408230
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xa
call fcn.00408230
cmp dword [ebp - 0x22c], 8
lea ebx, [ebp - 0x240]
mov eax, 8
cmovae ebx, dword [ebp - 0x240]
push ebx
mov word [ebp - 0x358], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x350], eax
test eax, eax
jne 0x40b1a0
test ebx, ebx
jne 0x40b5e8
mov eax, dword [ebp - 0x2d0]
lea edx, [ebp - 0x358]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.CommandLine
push eax
mov byte [ebp - 4], 0x15
call dword [ecx + 0x14]
test eax, eax
jns 0x40b1cc
push eax
push 0
jmp 0x40b5cc
mov dword [ebp - 0x2e8], 0
mov eax, dword [ebp - 0x2c4]
mov byte [ebp - 4], 0x16
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x60]
test esi, esi
je 0x40b1ed
mov edx, dword [esi]
jmp 0x40b1ef
xor edx, edx
test edi, edi
je 0x40b1f7
mov ecx, dword [edi]
jmp 0x40b1f9
xor ecx, ecx
push 0
lea esi, [ebp - 0x2e8]
push esi
push dword [ebp - 0x2d0]
push 0
push 0
push edx
push ecx
push eax
call ebx
test eax, eax
jns 0x40b21d
push eax
push 0
jmp 0x40b5cc
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x348]
push eax
call edi
mov eax, dword [ebp - 0x2e8]
lea edx, [ebp - 0x348]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.ProcessId
push eax
mov byte [ebp - 4], 0x17
call dword [ecx + 0x10]
test eax, eax
jns 0x40b25a
push eax
push 0
jmp 0x40b5cc
push dword [ebp - 0x340]
lea eax, [ebp - 0x210]
push str.SELECT_ExitStatus_FROM_Win32_ProcessStopTrace_WHERE_ProcessId_u
push eax
call fcn.004066a0
add esp, 0xc
mov dword [ebp - 0x2cc], 0
mov esi, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x18
mov eax, dword [esi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407920
mov ebx, dword [eax]
mov byte [ebp - 4], 0x19
test ebx, ebx
je 0x40b2b3
mov ebx, dword [ebx]
jmp 0x40b2b5
xor ebx, ebx
push 0x43b494
lea ecx, [ebp - 0x2f8]
call fcn.00407920
mov eax, dword [eax]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x40b2d3
mov eax, dword [eax]
jmp 0x40b2d5
xor eax, eax
lea ecx, [ebp - 0x2cc]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2f8]
mov esi, eax
call fcn.00408ce0
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x18
call fcn.00408ce0
test esi, esi
jns 0x40b311
push esi
push 0
jmp 0x40b5cc
push 0
lea eax, [ebp - 0x318]
push eax
push 3
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2cc]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x2e4], 0
mov eax, dword [ebp - 0x2cc]
lea edx, [ebp - 0x2fc]
push edx
lea edx, [ebp - 0x2e4]
mov dword [ebp - 0x2fc], 0
push edx
mov ecx, dword [eax]
push 1
push 0xea60
push eax
mov byte [ebp - 4], 0x1b
call dword [ecx + 0x10]
test eax, eax
jns 0x40b375
push eax
push 0
jmp 0x40b5cc
cmp eax, 0x40004
jne 0x40b398
push 0x5b4
push 5
lea ecx, [ebp - 0x21c]
call fcn.00407660
push 0x44c704
jmp 0x40b5dc
lea eax, [ebp - 0x328]
push eax
call edi
mov esi, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x2dc]
push 0x43b498
mov byte [ebp - 4], 0x1c
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
call fcn.004079b0
mov eax, dword [eax]
mov byte [ebp - 4], 0x1d
test eax, eax
je 0x40b3ce
mov eax, dword [eax]
jmp 0x40b3d0
xor eax, eax
push 0
push 0
lea ecx, [ebp - 0x328]
push ecx
push 0
push eax
push esi
call ebx
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x1c
mov esi, eax
call fcn.00408ce0
test esi, esi
jns 0x40b3fe
push esi
push 0
jmp 0x40b5cc
cmp word [ebp - 0x328], 0x17
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jne 0x40b416
mov edi, dword [ebp - 0x320]
jmp 0x40b456
lea eax, [ebp - 0x338]
push eax
call edi
push 0x17
push 0
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x40b5f2
mov edi, dword [ebp - 0x330]
lea eax, [ebp - 0x338]
push eax
mov byte [ebp - 4], 0x1c
call esi
test edi, edi
je 0x40b4b0
lea eax, [ebp - 0x258]
push edi
push eax
call fcn.00415d90
push eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0x1f
push str.Exit_code:
push eax
call fcn.00402640
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x20
push 0x43a790
push eax
push ecx
call fcn.00402510
add esp, 0xc
lea ecx, [ebp - 0x2c0]
push 0xa
call fcn.004070d0
push 0x44c7a8
lea eax, [ebp - 0x2c0]
jmp 0x40b5e2
lea eax, [ebp - 0x328]
push eax
call esi
mov eax, dword [ebp - 0x2e4]
mov byte [ebp - 4], 0x21
test eax, eax
je 0x40b4cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2cc]
mov byte [ebp - 4], 0x22
test eax, eax
je 0x40b4e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x348]
push eax
call esi
mov eax, dword [ebp - 0x2e8]
mov byte [ebp - 4], 0x23
test eax, eax
je 0x40b4fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x358]
push eax
call esi
lea ecx, [ebp - 0x240]
call fcn.00408230
mov eax, dword [ebp - 0x2d0]
mov byte [ebp - 4], 0x24
test eax, eax
je 0x40b526
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2ec]
mov byte [ebp - 4], 0x25
test eax, eax
je 0x40b53a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2f0]
mov byte [ebp - 4], 0x26
test eax, eax
je 0x40b54e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2d8]
call fcn.00408ce0
lea ecx, [ebp - 0x2f4]
call fcn.00408ce0
mov eax, dword [ebp - 0x2c4]
mov byte [ebp - 4], 0x27
test eax, eax
je 0x40b578
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x288]
call fcn.00408230
lea ecx, [ebp - 0x2a0]
call fcn.00408230
mov eax, dword [ebp - 0x2d4]
mov byte [ebp - 4], 0x28
test eax, eax
je 0x40b5a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2dd]
call sub.ole32.dll_CoUninitialize
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b949
mov esp, ebp
pop ebp
ret
push eax
push 2
lea ecx, [ebp - 0x21c]
call fcn.00407030
push 0x44c7e0
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c83d
push 0x8007000e
call fcn.0041b050
push eax
call fcn.0041b050
int3