Function at 0x140014c20
Capabilities:
Enumerate services

Disassembly:
push r14
sub rsp, 0x70
mov ecx, 5
call fcn.140012420
mov r14, rax
test rax, rax
jne 0x140014c56
call fcn.140019be0
mov edx, 0x400001fb
lea rcx, [rax + 0x60]
call fcn.140007250
lea eax, [r14 + 1]
add rsp, 0x70
pop r14
ret
xor r9d, r9d
lea rax, [rsp + 0x90]
mov rcx, r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
lea edx, [r9 + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
lea r8d, [r9 + 3]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140014cf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov rbx, rax
call fcn.140019be0
mov r8, rbx
lea rcx, [rax + 0x60]
mov edx, 0x40000220
call fcn.140007250
mov rbx, qword [rsp + 0x98]
mov eax, 2
add rsp, 0x70
pop r14
ret
mov ebx, dword [rsp + 0x80]
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x140014d55
call fcn.140019be0
lea r9, str.list_nssm_services__
lea r8, str.ENUM_SERVICE_STATUS
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.140007250
mov rbx, qword [rsp + 0x98]
lea eax, [r12 + 3]
mov r12, qword [rsp + 0x50]
add rsp, 0x70
pop r14
ret
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
mov r15d, dword [rsp + 0x80]
nop word [rax + rax]
lea rax, [rsp + 0x90]
mov edx, 0x30
mov r9, r12
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
lea r8d, [rdx - 0x2d]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov r13d, eax
test eax, eax
jne 0x140014dd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140014ea0
xor edi, edi
cmp dword [rsp + 0x88], edi
jbe 0x140014e54
mov rsi, r12
call fcn.140013590
mov rbx, rax
test rax, rax
je 0x140014ee1
mov rax, qword [rsi]
lea r9, [0x140025890]
lea rcx, [rbx + 2]
or r8, 0xffffffffffffffff
mov edx, 0x100
mov qword [rsp + 0x20], rax
call fcn.140019e88
xor edx, edx
mov rcx, rbx
call fcn.1400114d0
cmp word [rbx + 0x1842a], 0
je 0x140014e3d
lea rdx, [rbx + 2]
lea rcx, [0x140025d48]
call fcn.14001b75c
mov rcx, rbx
call fcn.1400135f0
inc edi
add rsi, 0x30
cmp edi, dword [rsp + 0x88]
jb 0x140014de7
test r13d, r13d
je 0x140014d80
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov r13, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov rbx, rax
call fcn.140019be0
mov r8, rbx
lea rcx, [rax + 0x60]
mov edx, 0x40000220
call fcn.140007250
mov eax, 4
jmp 0x140014e73
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.140019be0
lea r9, str.list_nssm_services__
lea r8, str.nssm_service_t
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.140007250
mov eax, 5
jmp 0x140014e73