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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe55e
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 0x448], eax
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], 0
je 0x4ade98
lea ecx, [ebp - 0x428]
push ecx
push 0x502118
push 1
push edi
push 0x5021e8
mov dword [ebp - 0x428], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ade92
mov eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x430]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x430], edi
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x52619c
push eax
call edx
test eax, eax
js 0x4ade84
mov eax, dword [ebp - 0x430]
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x430]
js 0x4ade7c
lea edx, [ebp - 0x438]
push edx
push edi
push 0x30
push str.SELECT__FROM_Win32_Process
mov dword [ebp - 0x438], edi
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4ade9f
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4ae692
push 0x400
mov dword [ebp - 0x44c], edi
call fcn.004e4240
add esp, 4
mov esi, eax
mov dword [ebp - 0x434], esi
cmp dword [ebp - 0x438], edi
je 0x4ae64e
jmp 0x4aded6
mov esi, dword [ebp - 0x434]
push 0x400
push 0
push esi
mov ebx, 1
call fcn.004e7d90
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x42c]
push edx
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x44c], 0
je 0x4ae64e
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x424]
push edx
push 0
push str.Name
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae618
cmp word [ebp - 0x424], bx
je 0x4ae618
mov eax, dword [ebp - 0x41c]
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4adf56
lea edi, [esi - 2]
jmp 0x4adf70
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4adf70
mov ecx, dword [0x51d454]
lea edx, [ebp - 0x424]
push edx
mov dword [edi], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x424]
push edx
push 0
push str.ProcessId
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae5ed
cmp word [ebp - 0x424], bx
je 0x4ae5ed
mov eax, esi
lea edx, [eax + 2]
jmp 0x4adfd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4adfd0
sub eax, edx
mov edx, dword [ebp - 0x41c]
sar eax, 1
push 0xa
lea ecx, [esi + eax*2]
push ecx
push edx
call fcn.004e45ff
add esp, 0xc
lea edi, [esi - 2]
jmp 0x4ae000
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae000
mov ecx, dword [ebp - 0x41c]
mov eax, dword [0x51d454]
push ecx
push 1
push 0x400
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test byte [0x53e5c4], 1
mov ebx, eax
jne 0x4ae051
or dword [0x53e5c4], 1
mov dword [ebp - 4], 0
call fcn.004bc7d0
mov dword [0x53e5c0], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x53e5c0], 0
je 0x4ae0f2
lea edx, [ebp - 0x444]
push edx
push ebx
mov dword [ebp - 0x444], 0
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4ae0de
cmp dword [ebp - 0x444], 0
lea eax, [esi - 2]
je 0x4ae0b2
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4ae086
mov ecx, dword [0x526520]
mov dword [eax], ecx
mov edx, dword [0x526524]
mov dword [eax + 4], edx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4ae112
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4ae0b2
mov ecx, dword [0x526528]
mov dword [eax], ecx
mov edx, dword [0x52652c]
mov dword [eax + 4], edx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4ae112
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae0e1
jmp 0x4ae62c
lea eax, [esi - 2]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4ae0f5
mov ecx, dword [0x526520]
mov dword [eax], ecx
mov edx, dword [0x526524]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x424]
push edx
push 0
push str.ExecutablePath
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae5cc
cmp word [ebp - 0x424], 1
je 0x4ae5cc
mov eax, dword [ebp - 0x41c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae150
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ae160
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x434]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae185
mov ecx, dword [0x51d454]
lea edx, [ebp - 0x424]
push edx
mov dword [edi], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x43c]
push eax
push 8
push ebx
mov dword [ebp - 0x43c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x4ae641
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0
push 1
push eax
mov dword [ebp - 0x440], 0
call edi
mov edx, dword [ebp - 0x440]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
mov esi, eax
lea eax, [ebp - 0x440]
push eax
push ecx
push esi
push 1
push edx
call edi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004e7d90
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x412]
mov edi, pe_nt_image_headers32
push eax
mov dword [ebp - 0x450], edi
mov word [ebp - 0x414], dx
call fcn.004e7d90
add esp, 0x18
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x214]
mov dword [ebp - 0x454], edi
mov eax, dword [esi]
push edx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x214]
mov ecx, eax
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4ae2b0
mov ebx, dword [ebp - 0x434]
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 2]
jmp 0x4ae2d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ae2d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae2f0
mov edx, dword [0x51d454]
push 0
mov dword [edi], edx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x424]
push edx
push 0
push str.CreationDate
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae5a7
cmp word [ebp - 0x424], 1
je 0x4ae5a7
mov ecx, dword [ebp - 0x41c]
push 0xe
push ecx
push ebx
call fcn.004e4f1c
add esp, 0xc
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae350
mov edx, dword [0x51d454]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x424]
push eax
mov dword [edi], edx
call esi
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x424]
push edx
push 0
push str.SessionId
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae582
cmp word [ebp - 0x424], 1
je 0x4ae582
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae3b0
sub eax, edx
mov edx, dword [ebp - 0x41c]
sar eax, 1
push 0xa
lea ecx, [ebx + eax*2]
push ecx
push edx
call fcn.004e45ff
add esp, 0xc
lea edi, [ebx - 2]
jmp 0x4ae3e0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae3e0
mov eax, dword [0x51d454]
lea ecx, [ebp - 0x424]
push ecx
mov dword [edi], eax
call esi
mov eax, dword [ebp - 0x42c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x424]
push ecx
push 0
push str.PeakWorkingSetSize
push eax
call edx
test eax, eax
jne 0x4ae557
cmp word [ebp - 0x424], 1
je 0x4ae557
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae437
mov ecx, dword [ebp - 0x41c]
sub eax, edx
sar eax, 1
push 0xa
lea eax, [ebx + eax*2]
push eax
push ecx
call fcn.004e45ff
add esp, 0xc
lea edi, [ebx - 2]
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae460
mov edx, dword [0x51d454]
lea eax, [ebp - 0x424]
push eax
mov dword [edi], edx
call esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae482
sub eax, edx
sar eax, 1
mov ecx, 1
mov word [ebx + eax*2], cx
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae4a0
mov ecx, dword [ebp - 0x448]
sub eax, edx
sar eax, 1
lea esi, [ecx + 2]
jmp 0x4ae4c0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4ae4c0
sub ecx, esi
sar ecx, 1
add ecx, eax
cmp ecx, 0x25800
jae 0x4ae64e
mov edi, dword [ebp - 0x448]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4ae4f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae4f0
sub eax, edx
sar eax, 1
mov eax, ebx
jne 0x4ae524
mov edx, edi
sub edx, eax
jmp 0x4ae510
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ae510
jmp 0x4ae641
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae526
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ae536
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4ae641
lea edi, [ebx - 2]
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae560
mov edx, dword [0x51d454]
lea eax, [ebp - 0x424]
push eax
mov dword [edi], edx
call esi
jmp 0x4ae641
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae585
mov ecx, dword [0x51d454]
lea edx, [ebp - 0x424]
push edx
mov dword [edi], ecx
call esi
jmp 0x4ae641
lea edi, [ebx - 2]
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae5b0
mov eax, dword [0x51d454]
lea ecx, [ebp - 0x424]
mov dword [edi], eax
push ecx
jmp 0x4ae63b
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae5d0
mov edx, dword [0x51d454]
lea eax, [ebp - 0x424]
mov dword [edi], edx
push eax
jmp 0x4ae63b
lea eax, [esi - 2]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4ae5f0
mov ecx, dword [0x526530]
mov dword [eax], ecx
mov dx, word [0x526534]
mov word [eax + 4], dx
lea eax, [ebp - 0x424]
push eax
jmp 0x4ae63b
lea edi, [esi - 2]
jmp 0x4ae620
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4ae620
mov ecx, dword [0x51d454]
lea edx, [ebp - 0x424]
push edx
mov dword [edi], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x438], 0
jne 0x4aded0
mov eax, dword [ebp - 0x434]
push eax
call fcn.004e424b
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret