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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov ebx, eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
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 - 0x14]
push eax
push 0x100384b8
push 1
push 0
push 0x10038458
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x100055c6
push esi
push str.Failed_to_create_IWbemLocator_object._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
push str.ROOTMicrosoftWindowsDefender
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x100055dd
mov edx, dword [eax]
jmp 0x100055df
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 4]
mov ecx, dword [eax]
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 - 0x20]
mov esi, eax
call fcn.10001e30
test esi, esi
jns 0x1000561a
push esi
push str.Could_not_connect._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
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]
mov esi, eax
test esi, esi
jns 0x1000564a
push esi
push str.Could_not_set_proxy_blanket._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
push str.MSFT_MpPreference
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x10005661
mov edx, dword [eax]
jmp 0x10005663
xor edx, edx
mov eax, dword [ebp - 4]
push 0
mov ecx, dword [eax]
lea esi, [ebp - 0x10]
push esi
push 0
push 0
push edx
push eax
call dword [ecx + 0x18]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10001e30
test esi, esi
jns 0x10005698
push esi
push str.Could_not_get_pClass._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push str.Remove
push eax
call dword [ecx + 0x4c]
mov esi, eax
test esi, esi
jns 0x100056c9
push esi
push str.Could_not_get_pInParamsDefinition._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jns 0x100056f1
push esi
push str.Could_not_create_an_instance_of_the_input_parameters._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x100057b3
push edi
lea eax, [ebp - 0x30]
push eax
push 1
push 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, eax
test edi, edi
je 0x100057b2
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, eax
test esi, esi
js 0x100057b2
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, 0x2008
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push str.ControlledFolderAccessAllowedApplications
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x100057b2
push str.Remove
lea ecx, [ebp - 0x28]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x1000576d
mov esi, dword [eax]
jmp 0x1000576f
xor esi, esi
push str.MSFT_MpPreference
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x10005786
mov edx, dword [eax]
jmp 0x10005788
xor edx, edx
mov eax, dword [ebp - 4]
push 0
mov ecx, dword [eax]
lea edi, [ebp - 0x18]
push edi
push dword [ebp - 8]
push 0
push 0
push esi
push edx
push eax
call dword [ecx + 0x60]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10001e30
lea ecx, [ebp - 0x28]
call fcn.10001e30
pop edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
je 0x100057c8
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100057d5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100057e2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x100057ef
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100057fc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10005809
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10005816
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10005823
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
test esi, esi
pop esi
setns al
pop ebx
mov esp, ebp
pop ebp
ret