Function at 0x42f5d0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2848
call fcn.004bd3e0
mov eax, dword [0x53d190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x2848], ecx
push 0x2000
push 1
mov dword [ebp - 0x2840], eax
mov dword [ebp - 0x283c], eax
call fcn.004c9fda
mov esi, eax
add esp, 8
mov dword [ebp - 0x2844], esi
test esi, esi
je 0x42fbef
push ebx
push edi
push 0x535bec
push esi
call fcn.00422df0
add esp, 8
xor edi, edi
mov dword [ebp - 0x2824], edi
mov dword [ebp - 0x2838], edi
lea ebx, [esi + eax]
mov dword [ebp - 0x2834], edi
lea eax, [ebp - 0x2824]
mov dword [ebp - 0x282c], ebx
push eax
push 0x20119
push edi
push str.SOFTWAREPoliciesMicrosoftWindows_Advanced_Threat_Protection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42f718
lea eax, [ebp - 0x2834]
push eax
push edi
lea eax, [ebp - 0x2838]
push eax
push edi
push str.OnboardingInfo
push dword [ebp - 0x2824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f718
cmp dword [ebp - 0x2838], 1
jne 0x42f718
cmp dword [ebp - 0x2834], edi
je 0x42f718
push 1
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42f718
push 4
push str.Sense
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x42f6d4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f712
lea eax, [ebp - 0x2820]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
test eax, eax
jne 0x42f6f6
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f712
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x281c], 4
mov eax, 1
cmove edi, eax
mov ebx, dword [ebp - 0x282c]
mov eax, dword [ebp - 0x2824]
test eax, eax
je 0x42f729
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42f754
push str.Windows_Defender_Advanced_Threat_Protection
push 0x20
push 0x5369bc
push ebx
call fcn.00422df0
add esp, 0x10
mov dword [ebp - 0x2840], 1
add ebx, eax
mov dword [ebp - 0x282c], ebx
mov edi, 0x20019
mov dword [ebp - 0x2838], edi
nop
lea eax, [ebp - 0x283c]
push eax
push edi
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42fb49
push 0x400
lea eax, [ebp - 0x1404]
xor ebx, ebx
push eax
push ebx
push dword [ebp - 0x283c]
mov dword [ebp - 0x2830], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42fb2d
nop dword [eax + eax]
lea eax, [ebp - 0x1404]
mov byte [ebp - 0x404], 0
push eax
push str.Uninstall
push str.SoftwareMicrosoftWindowsCurrentVersion
lea eax, [ebp - 0x1804]
mov byte [ebp - 0x1004], 0
push str._s_s_s
xor esi, esi
mov byte [ebp - 0xc04], 0
push eax
mov byte [ebp - 0x804], 0
mov dword [ebp - 0x2824], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x2824]
push eax
push edi
push esi
lea eax, [ebp - 0x1804]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42fa76
mov eax, dword [ebp - 0x2824]
test eax, eax
je 0x42fa76
lea ecx, [ebp - 0x2828]
mov byte [ebp - 0x404], 0
push ecx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x2828], 0x400
push ecx
lea ecx, [ebp - 0x2834]
push ecx
push esi
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x2828]
mov byte [ebp - 0x1004], 0
push eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x2828], 0x400
push eax
lea eax, [ebp - 0x2834]
push eax
push esi
push str.DisplayIcon
push dword [ebp - 0x2824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x2828]
mov byte [ebp - 0xc04], 0
push eax
lea eax, [ebp - 0xc04]
mov dword [ebp - 0x2828], 0x400
push eax
lea eax, [ebp - 0x2834]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x2824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0xc04], 0
mov eax, 1
mov byte [ebp - 0x804], 0
cmovne esi, eax
mov dword [ebp - 0x2828], 0x400
lea eax, [ebp - 0x2828]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x2834]
push eax
push 0
push str.Publisher
push dword [ebp - 0x2824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2824]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42fa76
cmp byte [ebp - 0x404], 0
je 0x42fa76
cmp byte [ebp - 0x804], 0
je 0x42fa76
xor edi, edi
mov esi, 0x584768
nop dword [eax + eax]
test edi, edi
jne 0x42fa65
xor bh, bh
xor bl, bl
cmp byte [ebp - 0x404], bh
je 0x42f9ba
mov eax, dword [esi - 8]
test eax, eax
je 0x42f9ba
test byte [esi], 1
je 0x42f987
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004be7b0
add esp, 8
test eax, eax
setne bl
jmp 0x42f9ba
lea ecx, [ebp - 0x404]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42f9b0
test dl, dl
je 0x42f9ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42f9b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x42f990
xor eax, eax
jmp 0x42f9b5
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp byte [ebp - 0x804], 0
je 0x42fa1a
mov eax, dword [esi - 4]
test eax, eax
je 0x42fa1a
test byte [esi], 2
je 0x42f9e6
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004be7b0
add esp, 8
test eax, eax
setne bh
jmp 0x42fa1a
lea ecx, [ebp - 0x804]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42fa10
test dl, dl
je 0x42fa0c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42fa10
add ecx, 2
add eax, 2
test dl, dl
jne 0x42f9f0
xor eax, eax
jmp 0x42fa15
sbb eax, eax
or eax, 1
test eax, eax
sete bh
mov cl, byte [esi]
test cl, 4
je 0x42fa30
test bl, bl
je 0x42fa40
test bh, bh
je 0x42fa40
mov edi, 1
jmp 0x42fa56
mov al, cl
and al, 3
cmp al, 3
jne 0x42fa44
test bl, bl
jne 0x42fa29
test bh, bh
jne 0x42fa29
xor edi, edi
jmp 0x42fa56
test cl, 1
je 0x42fa4e
movzx edi, bl
jmp 0x42fa56
test cl, 2
je 0x42fa56
movzx edi, bh
add esi, 0x10
cmp esi, 0x584c88
jl 0x42f950
cmp edi, 1
je 0x42faa3
mov ebx, dword [ebp - 0x2830]
mov edi, dword [ebp - 0x2838]
push 0x400
lea eax, [ebp - 0x1404]
inc ebx
push eax
push ebx
push dword [ebp - 0x283c]
mov dword [ebp - 0x2830], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x42f7b0
jmp 0x42fb2d
push 0x1000
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.004beb60
lea edx, [ebp - 0x404]
mov dword [ebp - 0x2830], 0x1000
add esp, 0xc
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x42fad0
lea eax, [ebp - 0x2830]
sub edx, ecx
push eax
lea eax, [ebp - 0x2804]
inc edx
push eax
lea ecx, [ebp - 0x404]
call fcn.00422ac0
mov esi, dword [ebp - 0x2840]
mov ecx, 0x2c
mov ebx, dword [ebp - 0x282c]
test esi, esi
push eax
mov eax, 0x20
cmovne eax, ecx
push eax
push 0x5369bc
push ebx
call fcn.00422df0
add ebx, eax
add esp, 0x18
inc esi
mov dword [ebp - 0x282c], ebx
mov dword [ebp - 0x2840], esi
push dword [ebp - 0x283c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2838]
mov dword [ebp - 0x283c], 0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x2830], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42fb88
lea eax, [ebp - 0x2830]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x4e82f8]
call esi
cmp dword [ebp - 0x2830], 0
je 0x42fba3
cmp edi, 0x20119
je 0x42fba3
mov edi, 0x20119
jmp 0x42f759
push 0x535d80
push dword [ebp - 0x282c]
call fcn.00422df0
mov eax, dword [ebp - 0x2844]
add esp, 8
cmp dword [ebp - 0x2840], 0
pop edi
pop ebx
je 0x42fbd1
mov ecx, dword [ebp - 0x2848]
mov dword [ecx], eax
xor eax, eax
test eax, eax
je 0x42fbde
push eax
call fcn.004c4990
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.004bcc56
mov esp, ebp
pop ebp
ret