Function at 0x140014940
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 [0x140074040]
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 0x140014a6b
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 0x140014c24
movabs rax, 0x2aaaaaaaaaaaaaa
cmp rdx, rax
ja 0x140014f6d
lea rbx, [rdx + rdx*2]
shl rbx, 5
cmp rbx, 0x1000
jb 0x1400149ff
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140014f61
call fcn.14002cfec
test rax, rax
je 0x140014f67
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140014a0f
test rbx, rbx
je 0x140014a0f
mov rcx, rbx
call fcn.14002cfec
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 0x140014a62
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rsi
call fcn.140012840
lea rdx, [rbx + 0x20]
lea rcx, [rsi + 0x20]
call fcn.140012840
lea rdx, [rbx + 0x40]
lea rcx, [rsi + 0x40]
call fcn.140012840
add rsi, 0x60
add rbx, 0x60
cmp rbx, rdi
jne 0x140014a30
mov qword [r15 + 8], rsi
jmp 0x140014c24
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
movdqu xmmword [rsp + 0x60], xmm0
cmp byte [rcx + 0x28], sil
je 0x140014a8f
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
jmp 0x140014c1a
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 0x140014afe
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 0x140014c1a
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 0x140014b7a
cmp rax, 0x1000
jb 0x140014b4c
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140014f61
call fcn.14002cfec
mov rcx, rax
test rax, rax
je 0x140014f67
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140014b54
mov rcx, rbx
call fcn.14002cfec
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.140051d20
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 0x140014c43
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 0x140014c1a
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140014c09
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f67
call fcn.14002d030
xorps xmm0, xmm0
mov qword [rbp - 0x58], rsi
movdqu xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x60]
call fcn.140015650
mov rax, r15
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14002cd30
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm1, xmmword [0x14006af80]
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 0x140014eb0
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 0x140014cbe
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 0x140014e8c
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 0x140014e83
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 0x140014d2a
lea rax, [rdi + rbx]
jmp 0x140014d62
jbe 0x140014d66
mov rax, qword [rbp - 0x70]
sub rax, rdi
cmp rbx, rax
jbe 0x140014d4a
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140014500
mov rdi, qword [rbp - 0x80]
jmp 0x140014d66
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, r14
call fcn.140051d20
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 0x140014e75
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014d90
lea rcx, [rbp - 0x50]
call fcn.14000f6f0
mov rdx, qword [r12 + 8]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014db0
lea rcx, [rbp - 0x30]
call fcn.14000f6f0
mov rdx, qword [rdi + 0x10]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], si
jne 0x140014dd0
lea rcx, [rbp - 0x10]
call fcn.14000f6f0
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 0x140014e2a
sub r14, rdi
movzx ecx, word [rdi]
call fcn.14003bd40
mov word [rdi + r14], ax
add rdi, 2
cmp rdi, rbx
jne 0x140014e14
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x140014e64
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.140012840
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x30]
call fcn.140012840
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x10]
call fcn.140012840
add qword [rsp + 0x68], 0x60
jmp 0x140014e75
lea r8, [rbp - 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400157a0
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 0x140014cb0
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 0x140014f1a
sub r8, rcx
mov rax, rcx
cmp r8, 0x1000
jb 0x140014f06
mov rcx, qword [rcx - 8]
add r8, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f67
mov rdx, r8
call fcn.14002d030
xorps xmm0, xmm0
mov qword [rbp - 0x70], rsi
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x50]
call fcn.140014f80
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140014c1a
mov rdx, qword [rbp - 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140014c09
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f67
jmp 0x140014c09
call fcn.140005540
int3
call fcn.14003a96c
int3
call fcn.140011f20
int3