Function at 0x1400723c8
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
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edx, edx
mov r12, rcx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor r13d, r13d
mov r15, rax
test rax, rax
jne 0x140072420
lea rax, [0x1400c4d30]
jmp 0x140072631
mov word [0x1400e2ee0], r13w
or rbx, 0xffffffffffffffff
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x14007242c
xor r9d, r9d
mov dword [rbp - 0x3c], r13d
lea rax, [rbp - 0x38]
mov dword [rbp - 0x40], r13d
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rbp - 0x40]
mov dword [rbp - 0x38], r13d
mov qword [rsp + 0x30], rax
lea edx, [r9 + 0x20]
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x140072621
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140072621
mov eax, dword [rbp - 0x3c]
cmp eax, 0x40000
jae 0x140072621
lea esi, [rax + 1]
mov ecx, esi
mov r14d, esi
call fcn.14007e344
mov rdi, rax
test rax, rax
je 0x140072621
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x38]
mov edx, 0x20
mov qword [rsp + 0x38], rax
mov r9, rdi
lea rax, [rbp - 0x40]
mov rcx, r15
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea r8d, [rdx - 0x1f]
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x140072619
mov r14, r13
cmp dword [rbp - 0x40], r13d
jbe 0x140072619
mov rsi, rdi
mov rdx, qword [rsi]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140072516
cmp rax, rbx
jb 0x1400725ad
mov r8, rbx
mov qword [rbp - 0x30], r13
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
call fcn.1400022b0
mov r9, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
cmp r9, 8
mov r10, r12
cmovae rax, rcx
sub r10, rax
movzx edx, word [rax]
movzx r8d, word [rax + r10]
sub edx, r8d
jne 0x140072575
add rax, 2
test r8d, r8d
jne 0x14007255f
test edx, edx
je 0x1400725c1
cmp r9, 8
jb 0x1400725ad
lea rdx, [r9*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400725a8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007260d
call fcn.14007e34c
mov eax, dword [rbp - 0x40]
inc r14
add rsi, 0x30
cmp r14, rax
jae 0x140072619
jmp 0x14007250f
mov r8, qword [rsi]
lea rcx, [0x1400e2ee0]
mov edx, 0x20
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140072619
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072614
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140072614
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e34c
mov rcx, rdi
call fcn.14007e34c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [0x1400e2ee0]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0x80]
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