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

Disassembly:
push rbp
push rbx
push r12
push r13
mov rbp, rsp
sub rsp, 0x78
xor r13d, r13d
mov rbx, rcx
mov qword [rbp - 0x30], r13
mov dword [rbp + 0x38], r13d
mov dword [rbp - 0x34], r13d
mov dword [rbp - 0x38], r13d
mov dword [rbp + 0x30], r13d
mov r12d, r13d
mov qword [rbp - 0x28], r13
mov dword [rbp + 0x28], r13d
cmp dword [rcx + 0x10], r13d
je 0x140027937
cmp dword [rcx + 0xf4], r13d
jne 0x140027937
lea r8, [rbp - 0x28]
lea rdx, str.SOFTWAREApple_Inc.BonjourServicesSMB
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14002763b
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x40]
lea rdx, str.Advertise
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, 1
cmp dword [rbp + 0x30], r12d
je 0x140027701
lea rcx, [rbp + 0x28]
call fcn.14000a4d0
test eax, eax
je 0x140027701
lea rax, [rbp - 0x38]
lea r8, [rbp - 0x30]
or r9d, 0xffffffff
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x34]
mov edx, r14d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.NETAPI32.dll_NetShareEnum
test eax, eax
je 0x1400276a1
cmp eax, 0xea
je 0x1400276a1
cmp eax, 0x842
jne 0x140027701
mov dword [rbp + 0x28], r14d
jmp 0x140027707
mov ecx, dword [rbp + 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
test ecx, ecx
je 0x1400276ef
mov qword [rsp + 0x70], rsi
mov edx, ecx
mov qword [rsp + 0x68], rdi
nop dword [rax + rax]
cmp dword [rax + 8], r13d
jne 0x1400276dc
mov rsi, qword [rax]
lea rdi, str.print_
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
cmovne r12d, r14d
add rax, 0x18
dec rdx
jne 0x1400276c0
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rcx, r8
call sub.NETAPI32.dll_NetApiBufferFree
mov qword [rbp - 0x30], r13
mov dword [rbp + 0x28], r13d
jmp 0x140027742
cmp dword [rbp + 0x28], r12d
je 0x140027742
mov rcx, qword [rbx]
lea r9, [fcn.140028aa0]
xor r8d, r8d
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rbx
imul eax, eax, 0xff676980
movsxd rdx, eax
mov dword [rbp - 0x20], edx
sar rdx, 0x20
mov dword [rbp - 0x1c], edx
mov rcx, qword [rcx + 8]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
mov rax, qword [rbx]
mov ecx, dword [rax + 0x68]
test ecx, ecx
jne 0x140027905
test r12d, r12d
je 0x140027901
cmp qword [0x140071cf0], r13
jne 0x1400278eb
mov rax, qword [0x140071cd8]
test rax, rax
jne 0x140027796
lea rcx, str.dnssd.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140071cd8], rax
test rax, rax
jne 0x140027796
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
cmp qword [0x140071ce0], r13
jne 0x1400277cd
lea rdx, str.DNSServiceRegister
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140071ce0], rax
test rax, rax
jne 0x1400277c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
mov rax, qword [0x140071cd8]
cmp qword [0x140071ce8], r13
jne 0x1400277fd
lea rdx, str.DNSServiceRefDeallocate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140071ce8], rax
test rax, rax
jne 0x1400277fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
cmp qword [0x140071cf8], r13
jne 0x14002782d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140071cf8], rax
test rax, rax
jne 0x14002782d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
cmp qword [0x140071d00], r13
jne 0x14002785d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140071d00], rax
test rax, rax
jne 0x14002785d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
cmp qword [0x140071d08], r13
jne 0x14002788d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140071d08], rax
test rax, rax
jne 0x14002788d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
cmp qword [0x140071d10], r13
jne 0x1400278ba
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140071d10], rax
test rax, rax
jne 0x1400278ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
lea r8, [0x140027310]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call fcn.140045194
mov qword [0x140071cf0], rax
test rax, rax
jne 0x1400278eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027923
mov rcx, qword [0x140071cf8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbx]
mov dword [rdx + 0x68], r14d
jmp 0x140027923
test ecx, ecx
je 0x140027923
test r12d, r12d
jne 0x140027923
mov rcx, qword [0x140071d00]
test rcx, rcx
je 0x14002791c
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx]
mov dword [rax + 0x68], r13d
mov rcx, qword [rbp - 0x28]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x140027937
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
pop r13
pop r12
pop rbx
pop rbp
ret