Function at 0x425f60
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 0x425fbe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4260da
call esi
mov esi, eax
test esi, esi
jne 0x4261b0
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 0x426071
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x426055
test ebx, ebx
je 0x42600a
push ebx
call fcn.0043aafb
add esp, 4
mov esi, dword [ebp - 0x21c]
push esi
call fcn.0043aa67
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42604b
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 0x425ff0
jmp 0x426071
mov esi, 0xfffefffd
jmp 0x4261b0
test esi, esi
jne 0x426071
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4260da
call esi
mov esi, eax
test esi, esi
jne 0x4261b0
xor esi, esi
cmp dword [ebp - 0x214], esi
jbe 0x4260da
mov edi, ebx
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, str.SharedAccess
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4260ad
test dx, dx
je 0x4260a9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4260ad
add eax, 4
add ecx, 4
test dx, dx
jne 0x426087
xor eax, eax
jmp 0x4260b2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4260cc
inc esi
add edi, 0x24
cmp esi, dword [ebp - 0x214]
jb 0x426080
mov esi, 0xffffe5d4
jmp 0x4261b0
lea ecx, [esi + esi*8]
mov edi, 4
cmp dword [ebx + ecx*4 + 0xc], edi
je 0x4260e4
mov esi, 0xffffe5d4
jmp 0x4261b0
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 0x4261b0
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 0x426141
cmp dword [ebp - 0x218], eax
jne 0x4261b0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x426171
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4261f2
call esi
mov esi, eax
test esi, esi
jne 0x4261b0
push 0x44f580
lea edx, [ebp - 0x20c]
push edx
call fcn.00408b00
mov esi, eax
test esi, esi
jne 0x4261b0
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 0x4261c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4261ce
push ebx
call fcn.0043aafb
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4261df
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.00439f90
mov esp, ebp
pop ebp
ret
mov esi, 0xffffe5d0
jmp 0x4261b0