Function at 0x14002c4e0
Capabilities:
Enumerate services
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r13
lea rbp, [r11 - 0x198]
sub rsp, 0x280
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r12
xor r12d, r12d
lea r8d, [r12 + 4]
xor edx, edx
xor ecx, ecx
mov ebx, r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x4c], r12d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
jne 0x14002c558
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002c60c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14002c67d
xor r9d, r9d
lea rax, [rsp + 0x4c]
mov rcx, r13
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
lea edx, [r9 + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8d, [r9 + 3]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov edi, eax
test eax, eax
jne 0x14002c634
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14002c61a
test rbx, rbx
je 0x14002c5ba
mov rcx, rbx
call fcn.140044620
mov edi, dword [rsp + 0x40]
mov ecx, edi
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x14002c613
lea rax, [rsp + 0x4c]
mov edx, 0x30
mov r9, rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
lea r8d, [rdx - 0x2d]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rcx, r13
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov edi, eax
test eax, eax
je 0x14002c5a0
jmp 0x14002c634
mov edi, 0xffffe5d4
jmp 0x14002c67d
mov edi, 0xfffefffd
jmp 0x14002c67d
test edi, edi
jne 0x14002c634
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002c60c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14002c67d
mov edx, dword [rsp + 0x48]
mov qword [rsp + 0x2a8], rsi
test edx, edx
je 0x14002c670
mov rax, rbx
nop word [rax + rax]
mov rsi, qword [rax]
lea rdi, str.SharedAccess
mov ecx, reloc.WS2_32.dll_listen
repe cmpsw word [rsi], word [rdi]
je 0x14002c6d5
inc r12d
add rax, 0x30
cmp r12d, edx
jb 0x14002c650
mov edi, 0xffffe5d4
mov rsi, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x2b0]
test rcx, rcx
je 0x14002c695
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14002c6a2
mov rcx, rbx
call fcn.140044620
mov rbx, qword [rsp + 0x2a0]
test r13, r13
je 0x14002c6b8
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x280
pop r13
pop rdi
pop rbp
ret
mov eax, r12d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp dword [rbx + rcx*8 + 0x14], 4
jne 0x14002c670
lea r8, [rsp + 0x50]
lea rdx, str.SOFTWAREApple_Inc.Bonjour
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test eax, eax
jne 0x14002c675
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, str.ManageFirewall
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14002c74f
cmp dword [rsp + 0x44], eax
jne 0x14002c675
lea rdx, [rsp + 0x60]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14002c780
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002c7d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14002c675
lea rdx, [0x140059fc0]
lea rcx, [rsp + 0x60]
call fcn.14000a430
mov edi, eax
test eax, eax
jne 0x14002c675
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea r9d, [rdi + 4]
lea rdx, str.ManageFirewall
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x14002c675
mov edi, 0xffffe5d0
jmp 0x14002c675