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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e3a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0
call fcn.004043d0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
push 0x42943c
push 1
push 0
push 0x42942c
mov dword [ebp - 0x84], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4046db
push 0x25
xor eax, eax
mov dword [ebp - 0x28], 0
push str.Failed_to_create_IWbemLocator_object.
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00407e50
mov edx, str.Error:
mov byte [ebp - 4], 1
mov ecx, 0x4361c0
call fcn.00408800
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.00409f30
add esp, 4
push eax
call fcn.00408ac0
mov edx, dword [ebp - 0x24]
add esp, 4
cmp edx, 8
jb 0x4046b7
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4046ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cee
push edx
push ecx
call fcn.0040d2e6
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 0x10], xmm0
jmp 0x404cce
mov eax, dword [ebp - 0x80]
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x94], eax
call fcn.0040cf3b
mov esi, eax
add esp, 4
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x404736
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x404cf3
jmp 0x404738
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x90], esi
test esi, esi
je 0x404cfd
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
push dword [ebp - 0x80]
call dword [ebp - 0x94]
mov dword [ebp - 0x94], eax
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4047bc
mov ecx, dword [esi]
test ecx, ecx
je 0x404794
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4047ab
push eax
call fcn.0040cf36
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040d2e6
mov eax, dword [ebp - 0x94]
add esp, 8
test eax, eax
jns 0x40486d
push 0x19
xor eax, eax
mov dword [ebp - 0x28], 0
push str.Could_not_connect_to_WMI.
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00407e50
mov edx, str.Error:
mov byte [ebp - 4], 4
mov ecx, 0x4361c0
call fcn.00408800
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.00409f30
add esp, 4
push eax
call fcn.00408ac0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x404859
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40484f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d07
push edx
push ecx
call fcn.0040d2e6
add esp, 8
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x98]
jmp 0x4046b7
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x1e]
nop word [eax + eax]
mov eax, 0xcccccccd
sub ecx, 2
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
add edi, 0x30
mov word [ecx], di
mov edi, edx
test edi, edi
jne 0x404880
xor eax, eax
mov dword [ebp - 0xa4], edx
mov word [ebp - 0xb4], ax
lea eax, [ebp - 0x1e]
mov dword [ebp - 0xa0], 7
cmp ecx, eax
je 0x4048d1
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00407e50
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 5
push eax
mov edx, str.SELECT_CommandLine_FROM_Win32_Process_WHERE_ProcessId_
lea ecx, [ebp - 0x7c]
call fcn.00408b00
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xa0]
cmp edx, 8
jb 0x404930
mov ecx, dword [ebp - 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404926
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d0c
push edx
push ecx
call fcn.0040d2e6
add esp, 8
xor eax, eax
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0x68], 8
lea edi, [ebp - 0x7c]
mov word [ebp - 0xb4], ax
mov eax, dword [ebp - 0x84]
cmovae edi, dword [ebp - 0x7c]
push 0xc
mov dword [ebp - 0xa0], 7
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x90], eax
call fcn.0040cf3b
mov esi, eax
add esp, 4
mov dword [ebp - 0x94], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x4049b6
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4049b8
test edi, edi
jne 0x404d11
jmp 0x4049b8
xor esi, esi
mov byte [ebp - 4], 7
mov dword [ebp - 0xb8], esi
test esi, esi
je 0x404d1b
mov byte [ebp - 4], 9
mov eax, dword [esi]
push 0xc
mov dword [ebp - 0x94], eax
call fcn.0040cf3b
mov edi, eax
add esp, 4
mov dword [ebp - 0x9c], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x404a1a
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x431aac
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.0040cc40
mov dword [edi], eax
jmp 0x404a1c
xor edi, edi
mov byte [ebp - 4], 9
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x404d25
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xb
push eax
push 0
push 0x30
push dword [ebp - 0x94]
push dword [edi]
push dword [ebp - 0x84]
call dword [ebp - 0x90]
mov dword [ebp - 0x90], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x404a9c
mov ecx, dword [edi]
test ecx, ecx
je 0x404a77
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x404a8e
push eax
call fcn.0040cf36
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040d2e6
add esp, 8
or eax, 0xffffffff
mov byte [ebp - 4], 7
lock xadd dword [esi + 8], eax
dec eax
jne 0x404add
mov eax, dword [esi]
test eax, eax
je 0x404abb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404ad2
push eax
call fcn.0040cf36
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040d2e6
add esp, 8
cmp dword [ebp - 0x90], 0
jge 0x404bf6
push 0x26
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x431ab0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00407e50
mov edx, str.Error:
mov byte [ebp - 4], 0xc
mov ecx, 0x4361c0
call fcn.00408800
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.00409f30
add esp, 4
push eax
call fcn.00408ac0
mov byte [ebp - 4], 7
add esp, 4
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x404b7f
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404b75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2f
push edx
push ecx
call fcn.0040d2e6
add esp, 8
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x98]
movups xmm0, xmmword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 0x10], xmm0
cmp edx, 8
jb 0x404cce
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404cc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d34
jmp 0x404cc4
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x4c], 0
test ecx, ecx
je 0x404c9e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [eax + eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x8c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x4c], 0
je 0x404c98
mov ecx, dword [ebp - 0x8c]
lea edx, [ebp - 0x30]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.CommandLine
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x404c80
push dword [ebp - 0x28]
call fcn.0040cb20
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x404c67
sub edx, esi
lea ecx, [ebp - 0x64]
push edx
push eax
call fcn.00408190
lea eax, [ebp - 0x30]
push eax
call edi
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x88]
test ecx, ecx
jne 0x404c20
jmp 0x404c9e
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404b94
push edx
push ecx
call fcn.0040d2e6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cf25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00411af1
push 0x8007000e
call fcn.0040cb00
push 0x8007000e
call fcn.0040cb00
call fcn.00411af1
call fcn.00411af1
push 0x8007000e
call fcn.0040cb00
push 0x8007000e
call fcn.0040cb00
push 0x8007000e
call fcn.0040cb00
call fcn.00411af1
call fcn.00411af1
int3