Function at 0x10004fd0
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 0x10005076
push esi
push str.Failed_to_create_IWbemLocator_object._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x10005263
push str.ROOTMicrosoftWindowsDefender
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x1000508d
mov edx, dword [eax]
jmp 0x1000508f
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 0x100050ca
push esi
push str.Could_not_connect._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x10005263
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 0x100050fa
push esi
push str.Could_not_set_proxy_blanket._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x10005263
push str.MSFT_MpPreference
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x10005111
mov edx, dword [eax]
jmp 0x10005113
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 0x10005148
push esi
push str.Could_not_get_pClass._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x10005263
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x100381ac
push eax
call dword [ecx + 0x4c]
mov esi, eax
test esi, esi
jns 0x10005179
push esi
push str.Could_not_get_pInParamsDefinition._Error_code:_0x_08x_n
call fcn.10001080
add esp, 8
jmp 0x10005263
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 0x100051a1
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 0x10005263
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 0x10005262
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, eax
test esi, esi
js 0x10005262
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 0x10005262
push 0x100381ac
lea ecx, [ebp - 0x28]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x1000521d
mov esi, dword [eax]
jmp 0x1000521f
xor esi, esi
push str.MSFT_MpPreference
lea ecx, [ebp - 0x20]
call fcn.10001bc0
mov eax, dword [eax]
test eax, eax
je 0x10005236
mov edx, dword [eax]
jmp 0x10005238
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 0x10005278
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10005285
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10005292
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000529f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100052ac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100052b9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100052c6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100052d3
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