Function at 0x140027570
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 - 0x860]
sub rsp, 0x960
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rbp + 0x850], rax
mov r12, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x1400275e1
mov qword [r12], rsi
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rsi
jmp 0x140027720
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov r9d, 1
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x14002764b
mov qword [r12], rsi
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rsi
jmp 0x140027717
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov rdi, rsi
mov qword [rsp + 0x68], rsi
mov qword [rbp - 0x60], rsi
mov rdx, rax
test eax, eax
je 0x140027681
lea r8, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140016d00
mov eax, dword [rsp + 0x50]
mov rdi, qword [rbp - 0x60]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov r13, qword [rbp - 0x70]
mov qword [rsp + 0x20], r13
xor edx, edx
mov r9d, 1
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x140027753
mov qword [r12], rsi
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rsi
test r13, r13
je 0x140027717
sub rdi, r13
mov rax, r13
cmp rdi, 0x1000
jb 0x14002770b
add rdi, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bc0
mov rdx, rdi
mov rcx, r13
call fcn.14005e4dc
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, r12
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.14005e480
lea r11, [rsp + 0x960]
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
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, rsi
mov qword [rbp - 0x80], rdx
mov eax, esi
mov dword [rsp + 0x64], eax
mov r14, qword [rsp + 0x78]
cmp dword [rsp + 0x54], 0
jbe 0x140027b6c
nop dword [rax]
imul r15, rax, 0x38
cmp dword [r15 + r13 + 0x14], 4
jne 0x140027b54
mov rsi, qword [r15 + r13]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1400277a0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xor eax, eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], ax
mov dword [rbp + 0x40], 6
mov dword [rbp + 0x44], 0xbb8
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rbx
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.14000d0a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov eax, 7
mov qword [rbp - 0x18], rax
mov word [rbp - 0x30], si
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400278c6
mov dword [rsp + 0x5c], esi
lea r9, [rsp + 0x5c]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edi, dword [rsp + 0x5c]
lea eax, [rdi - 1]
cmp eax, 0x7ff
ja 0x1400278c2
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x50]
call fcn.140087b80
lea r9, [rsp + 0x5c]
mov r8d, edi
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1400278c2
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov rdx, qword [rbp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400278a0
lea rcx, [rbp - 0x10]
call fcn.140004b90
mov rax, qword [rbp - 0x18]
mov rdi, qword [rbp + 8]
mov rsi, qword [rbp]
jmp 0x1400278e0
mov rax, qword [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov edi, 7
mov qword [rbp + 8], rdi
xor ecx, ecx
mov word [rbp - 0x10], cx
cmp rax, 7
jbe 0x14002791c
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bcc
call fcn.14005e4dc
movups xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
test rsi, rsi
jne 0x140027975
cmp rdi, 7
jbe 0x14002796e
lea rdx, [rdi*2 + 2]
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027969
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bba
call fcn.14005e4dc
xor esi, esi
jmp 0x140027aa9
lea rcx, [rbp - 0x30]
call fcn.14001eb70
mov r9, qword [r15 + r13]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140027990
mov rax, qword [rbp - 0x38]
cmp rdx, rax
ja 0x1400279cf
lea rsi, [rbp - 0x50]
cmp rax, 7
cmova rsi, qword [rbp - 0x50]
mov qword [rbp - 0x40], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.1400874e0
xor eax, eax
mov word [rsi + rdi], ax
jmp 0x1400279db
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.14000d110
cmp r14, qword [rbp - 0x80]
je 0x140027a51
xorps xmm0, xmm0
movups xmmword [r14], xmm0
xor esi, esi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], rsi
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [r14], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
xorps xmm0, xmm0
movups xmmword [r14 + 0x20], xmm0
mov qword [r14 + 0x30], rsi
mov qword [r14 + 0x38], rsi
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [r14 + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [r14 + 0x30], xmm1
mov qword [rbp - 0x20], rsi
mov edx, 7
mov qword [rbp - 0x18], rdx
mov word [rbp - 0x30], si
add r14, 0x40
mov qword [rsp + 0x78], r14
jmp 0x140027a6d
lea r8, [rbp - 0x50]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140026d70
mov r14, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x18]
xor esi, esi
cmp rdx, 7
jbe 0x140027aa9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027aa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bba
call fcn.14005e4dc
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
mov word [rbp - 0x30], si
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
jbe 0x140027af9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140027af4
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bba
call fcn.14005e4dc
mov word [rbp - 0x50], si
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rsi
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140027b18
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140027b54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140027b4f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bc6
call fcn.14005e4dc
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
cmp eax, dword [rsp + 0x54]
jb 0x140027780
mov rdx, qword [rbp - 0x80]
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
mov qword [r12 + 8], r14
mov qword [r12 + 0x10], rdx
test r13, r13
je 0x140027717
mov rdx, qword [rsp + 0x68]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x14002770e
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027bc0
jmp 0x14002770e
call fcn.1400645e4
nop
call fcn.1400645e4
nop
call fcn.1400645e4
nop
call fcn.1400645e4
int3