Function at 0x140001d90
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14006a030]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
xor ebx, ebx
lea r8d, [rbx + 0xb]
lea rdx, str._n_nService:_n
call fcn.140004650
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
jne 0x140001e86
lea r8d, [rbx + 0x14]
lea rdx, str.openscmanage_error:
mov rcx, r12
call fcn.140004650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0xf]
call fcn.140004950
nop
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
mov rcx, r12
call fcn.140004650
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140001e6c
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000217a
call fcn.14002e428
mov r8d, 1
lea rdx, [0x1400616e0]
mov rcx, r12
call fcn.140004650
jmp 0x14000214d
mov dword [rbp + 7], ebx
mov dword [rbp + 0xb], ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0xb]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140001f75
mov r8d, 0x30
lea rdx, str.EnumServicesStatusEx_failed_to_get_required_size
mov rcx, r12
call fcn.140004650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0xf]
call fcn.140004950
nop
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
mov rcx, r12
call fcn.140004650
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140001f52
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000217a
call fcn.14002e428
mov r8d, 1
lea rdx, [0x1400616e0]
mov rcx, r12
call fcn.140004650
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000214d
xorps xmm0, xmm0
mov eax, dword [rbp + 7]
mov edi, eax
movdqu xmmword [rbp + 0xf], xmm0
mov r14, rbx
mov qword [rbp + 0x1f], rbx
mov rsi, rbx
test eax, eax
je 0x140001ff1
cmp rax, 0x1000
jb 0x140001fc1
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140002180
call fcn.14002e19c
test rax, rax
je 0x14000217a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001fcc
mov rcx, rdi
call fcn.14002e19c
mov rsi, rax
mov r15, rsi
mov qword [rbp + 0xf], rsi
lea r14, [rsi + rdi]
mov qword [rbp + 0x1f], r14
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140030410
mov qword [rbp + 0x17], r14
mov eax, dword [rbp + 7]
jmp 0x140001ff5
mov r15, qword [rbp + 0xf]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0xb]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x1400020c7
lea r8d, [rax + 0x1b]
lea rdx, str.EnumServicesStatusEx_failed
mov rcx, r12
call fcn.140004650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.140004950
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
mov rcx, r12
call fcn.140004650
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1400020b0
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002186
call fcn.14002e428
mov r8d, 1
lea rdx, [0x1400616e0]
mov rcx, r12
call fcn.140004650
jmp 0x14000210f
cmp dword [rbp + 0xb], 0
jbe 0x14000210f
nop dword [rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rdx, qword [rcx + rsi]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400020e1
mov rcx, r12
call fcn.140004650
mov r8d, 1
lea rdx, [0x1400616e0]
mov rcx, r12
call fcn.140004650
inc ebx
cmp ebx, dword [rbp + 0xb]
jb 0x1400020d0
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r15, r15
je 0x14000214d
sub r14, r15
mov rax, r15
cmp r14, 0x1000
jb 0x140002142
add r14, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000217a
mov rdx, r14
mov rcx, r15
call fcn.14002e428
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002dee0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140037554
int3
call fcn.140001240
nop
call fcn.140037554
nop
int3