Function at 0x421e80
Capabilities:
Enumerate network shares
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [ebx + 0xc], edi
je 0x42216f
cmp dword [ebx + 0xe8], edi
jne 0x42216f
lea eax, [ebp - 0xc]
push eax
push str.SOFTWAREApple_Inc.BonjourServicesSMB
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x421ef5
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push str.Advertise
push eax
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], edi
je 0x421fb3
lea ecx, [ebp - 8]
push ecx
call fcn.00408b70
test eax, eax
je 0x421fb3
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 4]
push edx
push 1
push edi
call sub.NETAPI32.dll_NetShareEnum
cmp eax, edi
je 0x421f44
cmp eax, 0xea
je 0x421f44
cmp eax, 0x842
jne 0x421fb3
mov dword [ebp - 8], 1
jmp 0x421fb8
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
cmp eax, edi
jbe 0x421f9f
mov ebx, eax
cmp dword [esi + 4], edi
jne 0x421f96
mov eax, dword [esi]
mov ecx, str.print_
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421f86
cmp dx, di
je 0x421f82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421f86
add eax, 4
add ecx, 4
cmp dx, di
jne 0x421f60
xor eax, eax
jmp 0x421f8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x421f96
mov dword [ebp - 0x18], 1
add esi, 0xc
dec ebx
jne 0x421f50
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jmp 0x421fe5
cmp dword [ebp - 8], edi
je 0x421fe5
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
imul eax, eax, 0xff676980
cdq
push edi
push ebx
mov dword [ebp - 0x1c], eax
push 0x421c40
mov eax, edx
mov dword [ebp - 0x18], edx
push edi
lea edx, [ebp - 0x1c]
sar eax, 0x1f
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x54]
cmp eax, edi
jne 0x422148
cmp esi, edi
je 0x422144
cmp dword [0x4612d0], edi
jne 0x42212c
mov eax, dword [0x4612c4]
cmp eax, edi
jne 0x42202e
push str.dnssd.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4612c4], eax
cmp eax, edi
jne 0x42202e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4612c8], edi
jne 0x42205d
push str.DNSServiceRegister
push eax
call esi
mov dword [0x4612c8], eax
cmp eax, edi
jne 0x422058
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
mov eax, dword [0x4612c4]
cmp dword [0x4612cc], edi
jne 0x422081
push str.DNSServiceRefDeallocate
push eax
call esi
mov dword [0x4612cc], eax
cmp eax, edi
jne 0x422081
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [0x4612d4], edi
jne 0x4220a9
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612d4], eax
cmp eax, edi
jne 0x4220a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
cmp dword [0x4612d8], edi
jne 0x4220cb
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612d8], eax
cmp eax, edi
jne 0x4220cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
cmp dword [0x4612dc], edi
jne 0x4220ea
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612dc], eax
cmp eax, edi
jne 0x4220ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
cmp dword [0x4612e0], edi
jne 0x422109
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612e0], eax
cmp eax, edi
jne 0x422109
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
push edi
push edi
push ebx
push 0x421c50
push edi
push edi
call fcn.0043b3af
add esp, 0x18
mov dword [0x4612d0], eax
cmp eax, edi
jne 0x42212c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422161
mov edx, dword [0x4612d4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx]
mov dword [eax + 0x54], 1
jmp 0x422161
cmp eax, edi
je 0x422161
cmp esi, edi
jne 0x422161
mov eax, dword [0x4612d8]
cmp eax, edi
je 0x42215c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebx]
mov dword [ecx + 0x54], edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x42216f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4