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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 8]
push eax
push 0x100384b8
push 1
push 0
push 0x10038458
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x10005376
push eax
push str.Failed_to_create_IWbemLocator_object._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov esp, ebp
pop ebp
ret
push str.ROOTMicrosoftWindowsDefender
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x10005394
mov edx, dword [eax]
jmp 0x10005396
xor edx, edx
mov eax, dword [ebp - 8]
push esi
mov ecx, dword [eax]
lea esi, [ebp - 4]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10001e30
test esi, esi
jns 0x100053e6
push esi
push str.Could_not_connect._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1000541a
push eax
push str.Could_not_set_proxy_blanket._Error_code:_0x_08x_n
call fcn.10001080
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100053cd
push str.SELECT__FROM_MSFT_MpPreference
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call fcn.10001b30
mov eax, dword [eax]
test eax, eax
je 0x10005438
mov esi, dword [eax]
jmp 0x1000543a
xor esi, esi
push 0x100380bc
lea ecx, [ebp - 0x18]
call fcn.10001b30
mov eax, dword [eax]
test eax, eax
je 0x10005451
mov edx, dword [eax]
jmp 0x10005453
xor edx, edx
mov eax, dword [ebp - 4]
push edi
mov ecx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10001e30
lea ecx, [ebp - 0x1c]
call fcn.10001e30
pop edi
test esi, esi
jns 0x10005486
push esi
push str.Query_for_MSFT_MpPreference_failed._Error_code__0x_08x_n
jmp 0x10005407
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x100053d6
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0xc]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x100053d6
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push str.EnableControlledFolderAccess
push eax
call dword [ecx + 0x10]
movsx eax, word [ebp - 0x24]
push eax
push str.EnableControlledFolderAccess:__d_n
call fcn.10001080
movsx esi, word [ebp - 0x24]
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret