Function at 0x421e90
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 0x42217f
cmp dword [ebx + 0xe8], edi
jne 0x42217f
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 0x421f05
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 0x421fc3
lea ecx, [ebp - 8]
push ecx
call fcn.00408b70
test eax, eax
je 0x421fc3
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 0x421f54
cmp eax, 0xea
je 0x421f54
cmp eax, 0x842
jne 0x421fc3
mov dword [ebp - 8], 1
jmp 0x421fc8
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
cmp eax, edi
jbe 0x421faf
mov ebx, eax
cmp dword [esi + 4], edi
jne 0x421fa6
mov eax, dword [esi]
mov ecx, str.print_
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421f96
cmp dx, di
je 0x421f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421f96
add eax, 4
add ecx, 4
cmp dx, di
jne 0x421f70
xor eax, eax
jmp 0x421f9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x421fa6
mov dword [ebp - 0x18], 1
add esi, 0xc
dec ebx
jne 0x421f60
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 0x421ff5
cmp dword [ebp - 8], edi
je 0x421ff5
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
imul eax, eax, 0xff676980
cdq
push edi
push ebx
mov dword [ebp - 0x1c], eax
push 0x421c50
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 0x422158
cmp esi, edi
je 0x422154
cmp dword [0x4612d0], edi
jne 0x42213c
mov eax, dword [0x4612c4]
cmp eax, edi
jne 0x42203e
push str.dnssd.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4612c4], eax
cmp eax, edi
jne 0x42203e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4612c8], edi
jne 0x42206d
push str.DNSServiceRegister
push eax
call esi
mov dword [0x4612c8], eax
cmp eax, edi
jne 0x422068
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
mov eax, dword [0x4612c4]
cmp dword [0x4612cc], edi
jne 0x422091
push str.DNSServiceRefDeallocate
push eax
call esi
mov dword [0x4612cc], eax
cmp eax, edi
jne 0x422091
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [0x4612d4], edi
jne 0x4220b9
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612d4], eax
cmp eax, edi
jne 0x4220b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
cmp dword [0x4612d8], edi
jne 0x4220db
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612d8], eax
cmp eax, edi
jne 0x4220db
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
cmp dword [0x4612dc], edi
jne 0x4220fa
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612dc], eax
cmp eax, edi
jne 0x4220fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
cmp dword [0x4612e0], edi
jne 0x422119
push edi
push edi
push edi
push edi
call esi
mov dword [0x4612e0], eax
cmp eax, edi
jne 0x422119
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
push edi
push edi
push ebx
push 0x421c60
push edi
push edi
call fcn.0043b2af
add esp, 0x18
mov dword [0x4612d0], eax
cmp eax, edi
jne 0x42213c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422171
mov edx, dword [0x4612d4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx]
mov dword [eax + 0x54], 1
jmp 0x422171
cmp eax, edi
je 0x422171
cmp esi, edi
jne 0x422171
mov eax, dword [0x4612d8]
cmp eax, edi
je 0x42216c
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 0x42217f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4