Function at 0x1400275b0
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 0x140027947
cmp dword [rcx + 0xf4], r13d
jne 0x140027947
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 0x14002764b
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 0x140027711
lea rcx, [rbp + 0x28]
call fcn.14000a4d0
test eax, eax
je 0x140027711
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 0x1400276b1
cmp eax, 0xea
je 0x1400276b1
cmp eax, 0x842
jne 0x140027711
mov dword [rbp + 0x28], r14d
jmp 0x140027717
mov ecx, dword [rbp + 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
test ecx, ecx
je 0x1400276ff
mov qword [rsp + 0x70], rsi
mov edx, ecx
mov qword [rsp + 0x68], rdi
nop dword [rax + rax]
cmp dword [rax + 8], r13d
jne 0x1400276ec
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 0x1400276d0
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 0x140027752
cmp dword [rbp + 0x28], r12d
je 0x140027752
mov rcx, qword [rbx]
lea r9, [fcn.140028900]
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 0x140027915
test r12d, r12d
je 0x140027911
cmp qword [0x140071cf0], r13
jne 0x1400278fb
mov rax, qword [0x140071cd8]
test rax, rax
jne 0x1400277a6
lea rcx, str.dnssd.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140071cd8], rax
test rax, rax
jne 0x1400277a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
cmp qword [0x140071ce0], r13
jne 0x1400277dd
lea rdx, str.DNSServiceRegister
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140071ce0], rax
test rax, rax
jne 0x1400277d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
mov rax, qword [0x140071cd8]
cmp qword [0x140071ce8], r13
jne 0x14002780d
lea rdx, str.DNSServiceRefDeallocate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140071ce8], rax
test rax, rax
jne 0x14002780d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
cmp qword [0x140071cf8], r13
jne 0x14002783d
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 0x14002783d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
cmp qword [0x140071d00], r13
jne 0x14002786d
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 0x14002786d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
cmp qword [0x140071d08], r13
jne 0x14002789d
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 0x14002789d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
cmp qword [0x140071d10], r13
jne 0x1400278ca
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 0x1400278ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
lea r8, [0x140027320]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call fcn.140044ff4
mov qword [0x140071cf0], rax
test rax, rax
jne 0x1400278fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140027933
mov rcx, qword [0x140071cf8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbx]
mov dword [rdx + 0x68], r14d
jmp 0x140027933
test ecx, ecx
je 0x140027933
test r12d, r12d
jne 0x140027933
mov rcx, qword [0x140071d00]
test rcx, rcx
je 0x14002792c
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 0x140027947
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
pop r13
pop r12
pop rbx
pop rbp
ret