Function at 0x14002dda0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rcx, qword [0x14008ece0]
test rcx, rcx
jne 0x14002ddc6
mov ebx, 0xffffe5d4
call fcn.14002cd00
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret
lea rdx, [0x14002cf60]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ece8], rax
test rax, rax
jne 0x14002de1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rax, qword [0x14008ece8]
lea rdx, [fcn.14002dba0]
xor r8d, r8d
mov rcx, rax
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ecf0], rax
test rax, rax
jne 0x14002de72
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ecf8], rax
test rax, rax
jne 0x14002deb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rax, qword [0x14008ecf8]
lea rdx, [0x14002cf80]
xor r8d, r8d
mov rcx, rax
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
mov edx, 2
lea r8d, [rax + 0x11]
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002df07
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov rcx, rdi
mov qword [0x14006a0a0], rdi
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14002df4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
xor ecx, ecx
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x78]
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x78], ecx
xor r9d, r9d
mov edx, 0x28000017
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea r8, [0x14002cfc0]
xor r9d, r9d
mov edx, 0x200
mov rcx, rdi
call fcn.14002b830
mov ebx, eax
test eax, eax
jne 0x14002e463
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed08], rax
test rax, rax
jne 0x14002dff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea rax, [0x14008ed00]
lea rdx, str.SYSTEMCurrentControlSetServiceslanmanserverparameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [0x14008ed00]
test rcx, rcx
je 0x14002e04f
mov r9, qword [0x14008ed08]
mov edx, 1
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed08]
lea rdx, [0x14002d030]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed18], rax
test rax, rax
jne 0x14002e0a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [0x14008ed10]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov r9, qword [0x14008ed18]
mov rcx, qword [0x14008ed10]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed18]
lea rdx, [0x14002d080]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed28], rax
test rax, rax
jne 0x14002e155
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [0x14008ed20]
lea rdx, str.SOFTWAREApple_Inc.BonjourDynDNSSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov r9, qword [0x14008ed28]
mov rcx, qword [0x14008ed20]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed28]
lea rdx, [0x14002d0d0]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed38], rax
test rax, rax
jne 0x14002e201
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [0x14008ed30]
lea rdx, str.SYSTEMCurrentControlSetServiceslanmanserverShares
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14002e26d
mov r9, qword [0x14008ed38]
mov rcx, qword [0x14008ed30]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed38]
lea rdx, [0x14002d120]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed48], rax
test rax, rax
jne 0x14002e2a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [0x14008ed40]
lea rdx, str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyFirewallRules
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14002e313
mov r9, qword [0x14008ed48]
mov rcx, qword [0x14008ed40]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed48]
lea rdx, [0x14002d170]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008ed58], rax
test rax, rax
jne 0x14002e34d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
lea r8, [0x14008ed50]
lea rdx, str.SOFTWAREApple_Inc.BonjourServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov r9, qword [0x14008ed58]
mov rcx, qword [0x14008ed50]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rcx, qword [0x14008ed58]
lea rdx, [0x14002d1c0]
xor r8d, r8d
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [0x14008ed78], rax
test rax, rax
jne 0x14002e3f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rax, qword [0x14008ed78]
lea rdx, [0x14002d210]
xor r8d, r8d
mov rcx, rax
call fcn.14002b960
mov ebx, eax
test eax, eax
jne 0x14002e463
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [0x14008ed80], rax
test rax, rax
jne 0x14002e44b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002ddb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002e463
mov rax, qword [0x14008ed80]
lea rdx, [0x14002dc30]
xor r8d, r8d
mov rcx, rax
call fcn.14002b960
mov ebx, eax
test eax, eax
je 0x14002e46a
call fcn.14002cd00
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret