Function at 0x409290
Capabilities:
Connect to wmi namespace via wbemlocator
Contain obfuscated stackstrings
Print debug messages
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
push ebx
push ebx
mov dword [esp + 0x44], edi
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 eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push eax
push 0x467988
push 1
push ebx
push 0x467a58
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x409a60
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push ebx
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x409315
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x28]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x409353
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40933c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [0x46b21c]
mov cl, 0x44
mov dword [esp + 0x14], eax
mov al, 0x45
mov byte [esp + 0x5d], al
mov byte [esp + 0x5f], al
mov al, 0x20
mov byte [esp + 0x70], cl
mov byte [esp + 0x74], cl
mov byte [esp + 0x62], al
mov byte [esp + 0x64], al
mov byte [esp + 0x69], al
lea ecx, [esp + 0x5c]
mov al, 0x69
test ecx, ecx
mov byte [esp + 0x5c], 0x53
mov byte [esp + 0x5e], 0x4c
mov byte [esp + 0x60], 0x43
mov byte [esp + 0x61], 0x54
mov byte [esp + 0x63], 0x2a
mov byte [esp + 0x65], 0x46
mov byte [esp + 0x66], 0x52
mov byte [esp + 0x67], 0x4f
mov byte [esp + 0x68], 0x4d
mov byte [esp + 0x6a], 0x57
mov byte [esp + 0x6b], al
mov byte [esp + 0x6c], 0x6e
mov byte [esp + 0x6d], 0x33
mov byte [esp + 0x6e], 0x32
mov byte [esp + 0x6f], 0x5f
mov byte [esp + 0x71], al
mov byte [esp + 0x72], 0x73
mov byte [esp + 0x73], 0x6b
mov byte [esp + 0x75], 0x72
mov byte [esp + 0x76], al
mov byte [esp + 0x77], 0x76
mov byte [esp + 0x78], 0x65
mov byte [esp + 0x79], bl
je 0x409406
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x409408
xor esi, esi
push esi
lea ecx, [esp + 0x18]
call fcn.00401de0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40944f
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [esp + 0x5c]
push esi
push eax
push ecx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00401d40
mov edx, dword [esp + 0x14]
push edx
call ebp
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
mov word [edx + eax*2], bx
push 0x46bdd4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov eax, dword [0x46b21c]
mov ecx, str.SELECT__FROM
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x409472
xor eax, eax
jmp 0x409479
push str.SELECT__FROM
call ebp
mov ecx, dword [edi + 4]
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x38]
push edx
push str.SELECT__FROM
push eax
call fcn.00401eb0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
call fcn.00429290
lea ecx, [esp + 0x34]
call fcn.00401e80
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4094f9
cmp dword [ecx - 0xc], ebx
jge 0x4094c5
mov edx, dword [0x46b220]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4094ca
cmp dword [eax - 0xc], ebx
jge 0x4094da
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004027f0
jmp 0x4094f5
lea ecx, [esp + 0x14]
call fcn.00402690
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409524
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409524
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [0x46b21c]
push str.Executed_query_Anfrage_n
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0x24]
push edi
push ebx
mov edx, dword [ecx]
push ebx
push eax
push esi
push ecx
call dword [edx + 0x50]
test eax, eax
jne 0x4099ba
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4099a8
cmp dword [esp + 0x44], 1
jne 0x4099a8
mov eax, dword [0x46b21c]
mov ecx, 0x46bee4
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x409601
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x409601
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
test eax, eax
je 0x409601
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x46bee4
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401d40
mov eax, dword [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x18]
mov word [edx + eax*2], bx
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x50]
push ebx
mov ecx, dword [eax]
push edx
push ebx
push 0x46bddc
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x409646
lea eax, [esp + 0x40]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.00408d00
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x409638
xor eax, eax
jmp 0x40963b
push esi
call ebp
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.004027f0
mov eax, dword [esp + 0x38]
mov edx, dword [0x46b21c]
inc eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
push eax
lea eax, [esp + 0x38]
push 0x46bed4
push eax
call fcn.004036a0
mov eax, dword [esp + 0x24]
add esp, 8
mov esi, esp
cmp dword [eax - 0xc], ebx
jl 0x409689
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4096ab
mov edx, dword [0x46b21c]
mov dword [esi], edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edi, eax
jne 0x40969f
xor eax, eax
jmp 0x4096a2
push eax
call ebp
push edi
push eax
mov ecx, esi
call fcn.004027f0
mov esi, dword [esp + 0x40]
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov edi, dword [esi]
push eax
call fcn.00429290
mov ecx, esi
call dword [edi + 4]
mov eax, dword [esp + 0x20]
push 0x40
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jne 0x40992a
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x409713
cmp dword [eax - 0xc], ebx
jl 0x4096f0
lea ecx, [esp + 0x10]
call fcn.00402690
jmp 0x409713
mov edx, 0x4837e8
test edx, edx
jne 0x4096fd
xor eax, eax
jmp 0x409704
push 0x4837e8
call ebp
push 0x4837e8
push eax
lea ecx, [esp + 0x18]
call fcn.004027f0
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x50]
push ebx
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x40992a
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov esi, eax
jne 0x409740
xor eax, eax
jmp 0x409743
push eax
call ebp
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004026d0
mov eax, 0x46bed0
test eax, eax
je 0x40975e
push 0x46bed0
call ebp
push 0x46bed0
push eax
lea ecx, [esp + 0x18]
call fcn.004026d0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00408d00
mov esi, eax
mov eax, dword [0x46b21c]
add esp, 8
cmp esi, ebx
mov dword [esp + 0x1c], eax
je 0x4097d3
mov ecx, esi
shr ecx, 0x10
jne 0x4097a7
and esi, 0xffff
lea ecx, [esp + 0x1c]
push esi
call fcn.00402fe0
jmp 0x4097d3
push esi
call ebp
mov edi, eax
cmp edi, ebx
je 0x4097d3
push edi
lea ecx, [esp + 0x20]
call fcn.00401ce0
test eax, eax
je 0x4097d3
lea ecx, [edi + edi]
mov edi, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004026d0
mov eax, dword [esp + 0x1c]
push ecx
mov esi, esp
cmp dword [eax - 0xc], ebx
jl 0x409803
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x409825
mov edx, dword [0x46b21c]
mov dword [esi], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov edi, eax
jne 0x409819
xor eax, eax
jmp 0x40981c
push eax
call ebp
push edi
push eax
mov ecx, esi
call fcn.004027f0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
push ecx
mov edi, dword [esi]
mov ecx, esp
push eax
call fcn.004028d0
mov ecx, esi
call dword [edi + 4]
mov ecx, 0x46becc
test ecx, ecx
jne 0x40984a
xor eax, eax
jmp 0x409851
push 0x46becc
call ebp
push 0x46becc
push eax
lea ecx, [esp + 0x18]
call fcn.004026d0
mov edx, dword [esp + 0x40]
push edx
call fcn.00459e5e
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 4
push eax
call esi
push 0x46b42c
call esi
mov ecx, 0x4837e0
test ecx, ecx
je 0x409895
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x409897
xor esi, esi
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
jg 0x4098a6
cmp esi, dword [eax - 4]
jle 0x4098c1
lea ecx, [esp + 0x10]
call fcn.00402690
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
cmp eax, ebx
je 0x4098dc
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x4837e0
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40990b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40990b
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x50]
push ebx
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x409732
mov eax, dword [esp + 0x34]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409959
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409959
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409988
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409988
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x409596
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4099ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [0x46b220]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x409a04
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x409a0a
push esi
call fcn.00459de2
add esp, 4
jmp 0x409a0a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409a35
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x409a35
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409a60
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x409a60
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret