Function at 0x140014500
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 [0x140067040]
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 0x14001462b
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 0x1400147e4
movabs rax, 0x2aaaaaaaaaaaaaa
cmp rdx, rax
ja 0x140014b2d
lea rbx, [rdx + rdx*2]
shl rbx, 5
cmp rbx, 0x1000
jb 0x1400145bf
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140014b21
call fcn.14002398c
test rax, rax
je 0x140014b27
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400145cf
test rbx, rbx
je 0x1400145cf
mov rcx, rbx
call fcn.14002398c
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 0x140014622
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rsi
call fcn.1400122e0
lea rdx, [rbx + 0x20]
lea rcx, [rsi + 0x20]
call fcn.1400122e0
lea rdx, [rbx + 0x40]
lea rcx, [rsi + 0x40]
call fcn.1400122e0
add rsi, 0x60
add rbx, 0x60
cmp rbx, rdi
jne 0x1400145f0
mov qword [r15 + 8], rsi
jmp 0x1400147e4
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
movdqu xmmword [rsp + 0x60], xmm0
cmp byte [rcx + 0x28], sil
je 0x14001464f
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
jmp 0x1400147da
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 0x1400146be
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 0x1400147da
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 0x14001473a
cmp rax, 0x1000
jb 0x14001470c
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140014b21
call fcn.14002398c
mov rcx, rax
test rax, rax
je 0x140014b27
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140014714
mov rcx, rbx
call fcn.14002398c
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.140046c00
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 0x140014803
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 0x1400147da
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400147c9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014b27
call fcn.1400239d0
xorps xmm0, xmm0
mov qword [rbp - 0x58], rsi
movdqu xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x60]
call fcn.140015210
mov rax, r15
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400236d0
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm1, xmmword [0x14005e6e0]
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 0x140014a70
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 0x14001487e
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 0x140014a4c
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 0x140014a43
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 0x1400148ea
lea rax, [rdi + rbx]
jmp 0x140014922
jbe 0x140014926
mov rax, qword [rbp - 0x70]
sub rax, rdi
cmp rbx, rax
jbe 0x14001490a
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400140c0
mov rdi, qword [rbp - 0x80]
jmp 0x140014926
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, r14
call fcn.140046c00
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 0x140014a35
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014950
lea rcx, [rbp - 0x50]
call fcn.14000f170
mov rdx, qword [r12 + 8]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014970
lea rcx, [rbp - 0x30]
call fcn.14000f170
mov rdx, qword [rdi + 0x10]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014990
lea rcx, [rbp - 0x10]
call fcn.14000f170
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 0x1400149ea
sub r14, rdi
movzx ecx, word [rdi]
call fcn.1400312fc
mov word [rdi + r14], ax
add rdi, 2
cmp rdi, rbx
jne 0x1400149d4
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x140014a24
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400122e0
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x30]
call fcn.1400122e0
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x10]
call fcn.1400122e0
add qword [rsp + 0x68], 0x60
jmp 0x140014a35
lea r8, [rbp - 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140015360
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 0x140014870
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 0x140014ada
sub r8, rcx
mov rax, rcx
cmp r8, 0x1000
jb 0x140014ac6
mov rcx, qword [rcx - 8]
add r8, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014b27
mov rdx, r8
call fcn.1400239d0
xorps xmm0, xmm0
mov qword [rbp - 0x70], rsi
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x50]
call fcn.140014b40
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400147da
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400147c9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014b27
jmp 0x1400147c9
call fcn.140005550
int3
call fcn.14002fcf8
int3
call fcn.1400119a0
int3