Function at 0x14002fee0
Capabilities:
Delete service
Query service status

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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400820c0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, rcx
xor r13d, r13d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x1400305f6
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x1400303cf
call fcn.14002fa90
lea rdx, [rbp + 0xb0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002ff9a
cmp dword [rbp + 0xb4], 1
je 0x14002ff9a
mov ecx, dword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0xb0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002ff71
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14003019b
mov r15, qword [0x140087ea0]
test r15, r15
jne 0x14002ffc3
call fcn.140027a40
mov r15, qword [0x140087ea0]
mov rsi, qword [0x140087ea8]
test rsi, rsi
je 0x14002ffe1
lock inc dword [rsi + 8]
mov rsi, qword [0x140087ea8]
mov r15, qword [0x140087ea0]
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], rsi
mov rdi, 0xffffffffffffffff
xorps xmm0, xmm0
test rbx, rbx
jne 0x140030011
movups xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x1400721a0]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], bl
jmp 0x140030098
movups xmmword [rbp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140030020
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140010310
nop
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.1400254a0
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 7
jbe 0x140030086
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030081
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030744
call fcn.140038e94
movdqa xmm0, xmmword [0x140072190]
movdqu xmmword [rbp + 0x68], xmm0
mov word [rbp + 0x58], r13w
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x50], r13
lea rax, str.Service_deleted___
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 0x14
movups xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x90], xmm0
movsd xmm1, qword [rbp + 0x50]
movsd qword [rbp + 0xa0], xmm1
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
mov r8d, 2
lea rdx, [rbp + 0x90]
mov rcx, r15
call fcn.140025f90
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140030136
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030131
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003074a
call fcn.140038e94
movdqa xmm0, xmmword [0x1400721a0]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
test rsi, rsi
je 0x1400303b8
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400303b8
mov rbx, qword [rbp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400303b8
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14003070e
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rsp + 0x70]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rdi, 0xffffffffffffffff
xorps xmm0, xmm0
test rbx, rbx
jne 0x14003020d
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x1400721a0]
movdqu xmmword [rbp], xmm1
mov byte [rbp - 0x10], bl
jmp 0x140030298
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140030220
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140010310
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400254a0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140030286
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030281
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030750
call fcn.140038e94
movdqa xmm0, xmmword [0x140072190]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
lea rax, str.DeleteService__failed___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x1c
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rsp + 0x58]
movsd qword [rbp - 0x40], xmm1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140030db0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140030332
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003032d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030756
call fcn.140038e94
movdqa xmm0, xmmword [0x1400721a0]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003037c
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003037c
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003037c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400303b8
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400303b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003075c
call fcn.140038e94
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14003070e
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rsp + 0x70]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rdi, 0xffffffffffffffff
xorps xmm0, xmm0
test rbx, rbx
jne 0x140030441
movups xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x1400721a0]
movdqu xmmword [rbp + 0x20], xmm1
mov byte [rbp + 0x10], bl
jmp 0x1400304c8
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140030450
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140010310
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x10]
call fcn.1400254a0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x1400304b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400304b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030762
call fcn.140038e94
movdqa xmm0, xmmword [0x140072190]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
lea rax, str.OpenService__failed___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x1a
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rsp + 0x58]
movsd qword [rbp - 0x40], xmm1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140030db0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140030562
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003055d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030768
call fcn.140038e94
movdqa xmm0, xmmword [0x1400721a0]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400305ac
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400305ac
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400305ac
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400305e8
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400305e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003076e
call fcn.140038e94
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14003070e
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rsp + 0x70]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
lea rax, str.OpenSCManager_failed___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x19
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rsp + 0x58]
movsd qword [rbp - 0x40], xmm1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140019af0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400306d6
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400306d6
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400306d6
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14003070e
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030709
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003073e
call fcn.140038e94
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140038a00
lea r11, [rsp + 0x1e0]
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
call fcn.140042e3c
nop
call fcn.140042e3c
nop
call fcn.140042e3c
nop
call fcn.140042e3c
int3
call fcn.140042e3c
nop
call fcn.140042e3c
nop
call fcn.140042e3c
int3
call fcn.140042e3c
nop
call fcn.140042e3c
int3