Function at 0x401080
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x425da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x34], eax
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
push ecx
push 0x42c8e8
push 1
push ebx
push 0x42c998
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0xc
mov dword [esp + 0x20], ebx
call fcn.0041fa30
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp esi, ebx
mov dword [esp + 0x83c], ebx
je 0x40113b
mov edi, dword [esp + 0x848]
mov dword [esi + 4], ebx
push edi
mov dword [esi + 8], 1
call ebp
cmp eax, ebx
mov dword [esi], eax
jne 0x40113d
cmp edi, ebx
je 0x40113d
push 0x8007000e
call fcn.004144c3
jmp 0x40113d
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x83c], 0xffffffff
mov dword [esp + 0x18], esi
jne 0x40115a
push 0x8007000e
call fcn.004144c3
cmp esi, ebx
mov dword [esp + 0x83c], 1
je 0x40116d
mov ecx, dword [esi]
jmp 0x40116f
xor ecx, ecx
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x1c]
push edi
push ebx
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0xc]
cmp esi, ebx
mov dword [esp + 0x83c], 0xffffffff
je 0x40119b
mov ecx, esi
call fcn.00401600
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ecx, 7
mov esi, 0x432134
lea edi, [esp + 0x64]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x1ec
lea edi, [esp + 0x82]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x84c]
lea edx, [esp + 0x64]
push ecx
push edx
mov dword [esp + 0x1c], ebx
stosw word es:[edi], ax
call fcn.004148f2
push 0xc
call fcn.0041fa30
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, ebx
mov dword [esp + 0x83c], 2
je 0x401234
lea eax, [esp + 0x64]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], 1
call ebp
cmp eax, ebx
mov dword [esi], eax
jne 0x401236
lea ecx, [esp + 0x64]
test ecx, ecx
je 0x401236
push 0x8007000e
call fcn.004144c3
jmp 0x401236
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x83c], 0xffffffff
mov dword [esp + 0x60], esi
jne 0x401253
push 0x8007000e
call fcn.004144c3
cmp esi, ebx
mov dword [esp + 0x83c], 3
je 0x40126a
mov edx, dword [esi]
mov dword [esp + 0x18], edx
jmp 0x40126e
mov dword [esp + 0x18], ebx
push 0xc
call fcn.0041fa30
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
cmp edi, ebx
mov byte [esp + 0x83c], 4
je 0x4012b9
push 0x432130
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
call fcn.0041437e
cmp eax, ebx
mov dword [edi], eax
jne 0x4012bb
mov eax, 0x432130
test eax, eax
je 0x4012bb
push 0x8007000e
call fcn.004144c3
jmp 0x4012bb
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x83c], 3
mov dword [esp + 0x4c], edi
jne 0x4012d5
push 0x8007000e
call fcn.004144c3
cmp edi, ebx
mov byte [esp + 0x83c], 5
je 0x4012e5
mov ecx, dword [edi]
jmp 0x4012e7
xor ecx, ecx
mov eax, dword [esp + 0x1c]
lea ebp, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
mov edx, dword [eax]
push ebx
push 0x30
push ebp
push ecx
push eax
call dword [edx + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp edi, ebx
mov byte [esp + 0x83c], 3
je 0x401324
lea eax, [edi + 8]
push eax
call ebp
test eax, eax
jne 0x401324
push 1
mov ecx, edi
call fcn.00401650
cmp esi, ebx
mov dword [esp + 0x83c], 0xffffffff
je 0x401346
lea ecx, [esi + 8]
push ecx
call ebp
test eax, eax
jne 0x401346
push 1
mov ecx, esi
call fcn.00401650
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x401419
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
cmp eax, ebx
jne 0x401419
lea edx, [esp + 0x2c]
push edx
call ebp
lea eax, [esp + 0x50]
push eax
call ebp
mov eax, dword [esp + 0x24]
push ebx
lea edx, [esp + 0x30]
push ebx
push edx
mov dword [esp + 0x64], ebx
mov ecx, dword [eax]
push ebx
push str.Name
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x24]
push ebx
lea edx, [esp + 0x54]
push ebx
mov ecx, dword [eax]
push edx
push ebx
push str.CommandLine
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x58], ebx
je 0x40140d
mov eax, dword [esp + 0x34]
push eax
call fcn.004143f3
mov edi, eax
mov eax, dword [esp + 0x850]
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4013f7
cmp cl, bl
je 0x4013f3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4013f7
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4013d3
xor eax, eax
jmp 0x4013fc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4014a8
push edi
call fcn.0041fa59
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40135c
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x844]
mov dl, byte [esp + 0x13]
mov edi, 0x4362d0
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4362d0
mov ecx, esi
call fcn.00402420
mov ecx, dword [esp + 0x834]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x830
ret
push str.ffffffffffffffffffffffffffffffffffffffffffffffffffffind
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0041fa59
mov eax, dword [esp + 0x5c]
add esp, 4
push eax
call fcn.004143f3
mov cl, byte [esp + 0x13]
mov esi, eax
mov byte [esp + 0x3c], cl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.00402420
push esi
mov dword [esp + 0x840], 6
call fcn.0041fa59
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 4
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x50]
push eax
call esi
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x844]
mov al, byte [esp + 0x3c]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004023d0
mov ecx, dword [0x4283f0]
lea edx, [esp + 0x3c]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.004020d0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40148d
mov cl, byte [eax - 1]
cmp cl, bl
je 0x401594
cmp cl, 0xff
je 0x401594
dec cl
mov byte [eax - 1], cl
jmp 0x40148d
dec eax
push eax
call fcn.0041fa59
add esp, 4
jmp 0x40148d