Function at 0x425e60
Capabilities:
Enumerate services
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 4
push esi
push esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x224], edi
cmp edi, esi
jne 0x425ebe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x425fda
call esi
mov esi, eax
test esi, esi
jne 0x4260b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push esi
push 3
push 0x30
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
call edi
mov esi, eax
test esi, esi
jne 0x425f71
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x425f55
test ebx, ebx
je 0x425f0a
push ebx
call fcn.0043a9fb
add esp, 4
mov esi, dword [ebp - 0x21c]
push esi
call fcn.0043a967
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x425f4b
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push ebx
push 3
push 0x30
push eax
call edi
mov esi, eax
test esi, esi
je 0x425ef0
jmp 0x425f71
mov esi, 0xfffefffd
jmp 0x4260b0
test esi, esi
jne 0x425f71
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x425fda
call esi
mov esi, eax
test esi, esi
jne 0x4260b0
xor esi, esi
cmp dword [ebp - 0x214], esi
jbe 0x425fda
mov edi, ebx
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, str.SharedAccess
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425fad
test dx, dx
je 0x425fa9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425fad
add eax, 4
add ecx, 4
test dx, dx
jne 0x425f87
xor eax, eax
jmp 0x425fb2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x425fcc
inc esi
add edi, 0x24
cmp esi, dword [ebp - 0x214]
jb 0x425f80
mov esi, 0xffffe5d4
jmp 0x4260b0
lea ecx, [esi + esi*8]
mov edi, 4
cmp dword [ebx + ecx*4 + 0xc], edi
je 0x425fe4
mov esi, 0xffffe5d4
jmp 0x4260b0
lea edx, [ebp - 0x210]
push edx
push str.SOFTWAREApple_Inc.Bonjour
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x4260b0
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x22c]
push edx
push esi
push str.ManageFirewall
push eax
mov dword [ebp - 0x228], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x426041
cmp dword [ebp - 0x218], eax
jne 0x4260b0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x426071
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4260f2
call esi
mov esi, eax
test esi, esi
jne 0x4260b0
push 0x44f580
lea edx, [ebp - 0x20c]
push edx
call fcn.00408b00
mov esi, eax
test esi, esi
jne 0x4260b0
mov ecx, dword [ebp - 0x210]
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push str.ManageFirewall
push ecx
mov dword [ebp - 0x218], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4260c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4260ce
push ebx
call fcn.0043a9fb
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4260df
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret
mov esi, 0xffffe5d0
jmp 0x4260b0