Function at 0x1400144c0
Capabilities:
Enumerate services

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rax, qword [rcx + 0x10]
xor esi, esi
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
cmp qword [rcx + 8], rax
je 0x1400145eb
mov qword [rdx], rsi
movabs rax, 0x2aaaaaaaaaaaaaab
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov rcx, qword [rcx + 0x10]
sub rcx, qword [r14 + 8]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400147a4
movabs rax, 0x2aaaaaaaaaaaaaa
cmp rdx, rax
ja 0x140014aed
lea rbx, [rdx + rdx*2]
shl rbx, 5
cmp rbx, 0x1000
jb 0x14001457f
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140014ae1
call fcn.14002c5ac
test rax, rax
je 0x140014ae7
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14001458f
test rbx, rbx
je 0x14001458f
mov rcx, rbx
call fcn.14002c5ac
mov rsi, rax
mov qword [r15], rsi
lea rax, [rbx + rsi]
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rax
mov rdi, qword [r14 + 0x10]
mov rbx, qword [r14 + 8]
cmp rbx, rdi
je 0x1400145e2
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rsi
call fcn.1400122a0
lea rdx, [rbx + 0x20]
lea rcx, [rsi + 0x20]
call fcn.1400122a0
lea rdx, [rbx + 0x40]
lea rcx, [rsi + 0x40]
call fcn.1400122a0
add rsi, 0x60
add rbx, 0x60
cmp rbx, rdi
jne 0x1400145b0
mov qword [r15 + 8], rsi
jmp 0x1400147a4
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
movdqu xmmword [rsp + 0x60], xmm0
cmp byte [rcx + 0x28], sil
je 0x14001460f
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
jmp 0x14001479a
mov rcx, qword [rcx + 0x20]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea edx, [r9 + 0x30]
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 3]
mov dword [rsp + 0x5c], esi
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14001467e
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov qword [r15], rax
mov qword [r15 + 8], rcx
mov qword [r15 + 0x10], rdx
jmp 0x14001479a
mov eax, dword [rsp + 0x58]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
mov ebx, eax
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x58], rsi
test eax, eax
je 0x1400146fa
cmp rax, 0x1000
jb 0x1400146cc
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140014ae1
call fcn.14002c5ac
mov rcx, rax
test rax, rax
je 0x140014ae7
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400146d4
mov rcx, rbx
call fcn.14002c5ac
lea rcx, [rax + rbx]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rcx
mov r8, rbx
mov rcx, rax
xor edx, edx
call fcn.140050d90
mov rdi, qword [rbp - 0x68]
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x78]
mov edx, 0x30
mov qword [rsp + 0x38], rcx
mov r9, rdi
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea r8d, [rdx - 0x2d]
mov rcx, qword [r14 + 0x20]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x1400147c3
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x60]
mov qword [r15 + 8], rcx
mov rcx, qword [rbp - 0x68]
mov qword [r15], rax
mov qword [r15 + 0x10], rdx
test rcx, rcx
je 0x14001479a
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140014789
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ae7
call fcn.14002c5f0
xorps xmm0, xmm0
mov qword [rbp - 0x58], rsi
movdqu xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x60]
call fcn.1400151d0
mov rax, r15
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm1, xmmword [0x140069d20]
xorps xmm0, xmm0
mov ebx, esi
movdqa xmmword [rbp - 0x40], xmm1
mov r8, rsi
movdqa xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], si
movups xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], si
mov qword [rbp], rsi
mov qword [rbp + 8], 7
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov dword [rsp + 0x40], ebx
cmp dword [rsp + 0x5c], ebx
jbe 0x140014a30
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x120], r13
nop dword [rax + rax]
mov rax, qword [rbp - 0x80]
cmp rax, qword [rbp - 0x78]
je 0x14001483e
mov qword [rbp - 0x78], rax
mov rcx, qword [r14 + 0x20]
mov r8d, 1
mov eax, ebx
lea r12, [rax + rax*2]
shl r12, 4
add r12, rdi
mov rdx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
test rax, rax
je 0x140014a0c
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140014a03
mov r14, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
mov rcx, r14
mov ebx, dword [rsp + 0x58]
sub rcx, rdi
cmp rbx, rcx
jae 0x1400148aa
lea rax, [rdi + rbx]
jmp 0x1400148e2
jbe 0x1400148e6
mov rax, qword [rbp - 0x70]
sub rax, rdi
cmp rbx, rax
jbe 0x1400148ca
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140014080
mov rdi, qword [rbp - 0x80]
jmp 0x1400148e6
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, r14
call fcn.140050d90
mov rdi, qword [rbp - 0x80]
lea rax, [rbx + r14]
mov qword [rbp - 0x78], rax
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1400149f5
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014910
lea rcx, [rbp - 0x50]
call fcn.14000f130
mov rdx, qword [r12 + 8]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014930
lea rcx, [rbp - 0x30]
call fcn.14000f130
mov rdx, qword [rdi + 0x10]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014950
lea rcx, [rbp - 0x10]
call fcn.14000f130
cmp qword [rbp + 8], 7
lea rcx, [rbp - 0x10]
mov r8, qword [rbp - 0x10]
lea rdi, [rbp - 0x10]
mov rax, qword [rbp]
lea r14, [rbp - 0x10]
cmova rcx, r8
cmova rdi, r8
cmova r14, r8
lea rbx, [rcx + rax*2]
cmp rdi, rbx
je 0x1400149aa
sub r14, rdi
movzx ecx, word [rdi]
call fcn.14003abcc
mov word [rdi + r14], ax
add rdi, 2
cmp rdi, rbx
jne 0x140014994
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x1400149e4
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400122a0
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x30]
call fcn.1400122a0
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x10]
call fcn.1400122a0
add qword [rsp + 0x68], 0x60
jmp 0x1400149f5
lea r8, [rbp - 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140015320
mov ebx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
mov dword [rsp + 0x40], ebx
cmp ebx, dword [rsp + 0x5c]
jb 0x140014830
mov r13, qword [rsp + 0x120]
mov r12, qword [rsp + 0x170]
mov r8, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x60]
mov qword [r15 + 8], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [r15], rax
mov qword [r15 + 0x10], rdx
test rcx, rcx
je 0x140014a9a
sub r8, rcx
mov rax, rcx
cmp r8, 0x1000
jb 0x140014a86
mov rcx, qword [rcx - 8]
add r8, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ae7
mov rdx, r8
call fcn.14002c5f0
xorps xmm0, xmm0
mov qword [rbp - 0x70], rsi
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x50]
call fcn.140014b00
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14001479a
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140014789
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ae7
jmp 0x140014789
call fcn.140005550
int3
call fcn.1400395bc
int3
call fcn.140011960
int3