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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4364f7
call ebx
test eax, eax
je 0x4365d8
call ebx
mov esi, eax
test esi, esi
jne 0x4365dd
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 3
push 0x30
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
test esi, esi
jne 0x43658c
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x436574
test edi, edi
je 0x43653b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, dword [ebp - 8]
push esi
call ebx
mov edi, eax
add esp, 4
test edi, edi
je 0x43656d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 3
push 0x30
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
test esi, esi
je 0x436520
jmp 0x43658c
mov esi, 0xfffefffd
jmp 0x4365dd
test esi, esi
jne 0x43658c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4365d8
call ebx
mov esi, eax
test esi, esi
jne 0x4365dd
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x4365d8
mov ebx, edi
mov eax, dword [ebx]
mov ecx, str.SharedAccess
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4365c6
test dx, dx
je 0x4365c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4365c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4365a0
xor eax, eax
jmp 0x4365cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x436610
inc esi
add ebx, 0x24
cmp esi, dword [ebp - 0xc]
jb 0x436595
mov esi, 0xffffe5d4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4365eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4365f9
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x436607
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi*8]
cmp dword [edi + eax*4 + 0xc], 4
jne 0x4365d8
lea eax, [ebp - 4]
push eax
push str.SOFTWARENational_InstrumentsNI_Zeroconf
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x4365dd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.ManageFirewall
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x436665
cmp dword [ebp - 0x14], eax
jne 0x4365dd
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x436699
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x436721
call ebx
mov esi, eax
test esi, esi
jne 0x4365dd
push 6
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
cmp ebx, 0x80010106
je 0x4366ba
mov esi, ebx
test ebx, ebx
js 0x4366dd
lea ecx, [ebp - 0x10]
call fcn.004353c0
mov esi, eax
test esi, esi
js 0x4366dd
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4366ea
push ecx
lea edx, [ebp - 0x22c]
call fcn.00435550
mov esi, eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4366ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test ebx, ebx
js 0x4366f4
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
jne 0x4365dd
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push esi
push str.ManageFirewall
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x4365dd
mov esi, 0xffffe5d0
jmp 0x4365dd