Function at 0x14004dcbc
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0x20], rdx
xor r13d, r13d
mov dword [rbp + 0x18], r13d
mov qword [rdx], r13
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov dword [rbp + 0x18], 1
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x80]
call fcn.140009aa8
mov rcx, rax
lea r15, [rdi + 0x40]
mov rbx, qword [r15]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov r8, rax
mov r9d, 0x626
lea rdx, str.DependentServiceNames___s:_d_
mov rcx, r15
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x80]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp + 0x40]
call fcn.140022a08
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov qword [rbp + 0x10], r13
lea rax, vtable.MemoryBufferPtr_struct__ENUM_SERVICE_STATUSW_.0
mov qword [rbp + 8], rax
mov dword [rbp], r13d
mov dword [rbp + 4], r13d
lea r14, [rdi + 0x2f0]
mov rcx, r14
call fcn.14004ccd4
lea rcx, [rbp + 4]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 3]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea r12d, [r13 + 0x30]
test eax, eax
jne 0x14004dff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14004dff1
mov ecx, dword [rbp]
call fcn.140058c70
mov rbx, rax
lea rcx, [rbp + 8]
mov rax, qword [rbp + 8]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x10], rbx
mov rcx, r14
call fcn.14004ccd4
lea rcx, [rbp + 4]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp]
mov r8, rbx
lea edx, [r13 + 3]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x14004dea9
mov edi, r13d
cmp dword [rbp + 4], r13d
jbe 0x14004de8b
mov ebx, r13d
mov r8b, 1
mov rdx, qword [rbp + 0x10]
mov rdx, qword [rdx + rbx]
lea rcx, [rbp + 0x80]
call fcn.140009b58
nop
lea rdx, [rbp + 0x80]
mov rcx, rsi
call fcn.140019030
nop
lea rcx, [rbp + 0x80]
call fcn.14000a3b0
inc rdi
add rbx, r12
mov eax, dword [rbp + 4]
cmp rdi, rax
jb 0x14004de49
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14004dff1
mov rdx, r12
call fcn.140058c3c
mov qword [rbp + 0x10], r13
jmp 0x14004dff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x80]
call fcn.140009aa8
mov rcx, rax
mov r14, qword [r15]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov rsi, rax
mov ecx, r12d
call fcn.140023e14
mov ebx, eax
mov rax, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rax + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x642
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.EnumDependentServices__s_0x_x___s:_d_
mov rcx, r15
call qword [r14 + 0x138]
nop
lea rcx, [rbp + 0x80]
call fcn.14000a3b0
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], r13
mov word [rbp + 0x80], r13w
cmp word [0x1400a6650], r13w
jne 0x14004df4f
mov rax, r13
jmp 0x14004df5b
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x80]
call fcn.1400045d0
nop
mov qword [rbp + 0xb8], 0xf
mov qword [rbp + 0xb0], r13
mov byte [rbp + 0xa0], r13b
lea rcx, str..._nsService.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0xa0]
call fcn.140004720
nop
mov ecx, r12d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x643
lea r8, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0xc0]
call fcn.14005ba94
nop
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x80]
call fcn.140009aa8
mov r8, rax
mov rcx, qword [rsi + 8]
sub rcx, qword [rsi]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov rdi, rdx
sar rdi, 2
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rbx, qword [r15]
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x649
mov r8, rdi
lea rdx, str.Dependents.size_lu___s:_d_
mov rcx, r15
call qword [rbx + 0x148]
nop
lea rcx, [rbp + 0x80]
call fcn.14000a3b0
nop
lea rax, vtable.MemoryBufferPtr_struct__ENUM_SERVICE_STATUSW_.0
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14004e087
mov rdx, r12
call fcn.140058c3c
mov qword [rbp + 0x10], r13
lea rax, vtable.BufferPtr_struct__ENUM_SERVICE_STATUSW_.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x40]
call fcn.140022a60
mov rax, rsi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret