Function at 0x14000a170
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400cd220]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
lea r15, section..data
lea r12, [0x1400b3688]
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a1cb
test byte [rcx + 0x1c], 1
je 0x14000a1cb
mov edx, 0x3f
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
movups xmm0, xmmword [0x1400b3180]
movdqu xmmword [rbp - 0x18], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000a341
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a231
test byte [rcx + 0x1c], 2
je 0x14000a231
cmp byte [rcx + 0x19], 2
jb 0x14000a231
lea edx, [rsi + 0x40]
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
cmp edi, 5
jne 0x14000a330
movups xmm0, xmmword [0x1400b3070]
movdqu xmmword [rbp - 0x18], xmm0
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov r8d, edi
lea rdx, [0x1400b3670]
lea rcx, [rbp - 0x20]
call fcn.140007774
and qword [rsp + 0x20], 0
mov rbx, qword [rbp - 0x20]
mov r9, rbx
mov r8, qword [r14 + 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140008c34
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a2cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a308
test byte [rcx + 0x1c], 1
je 0x14000a308
movzx r9d, byte [rcx + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x14000a308
mov edx, 0x46
mov r9d, edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003680
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
movups xmm0, xmmword [0x1400b3060]
movdqu xmmword [rbp - 0x18], xmm0
jmp 0x14000a505
mov r8d, 0x10024
mov rdx, qword [r14 + 0x28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000a3e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x424
jne 0x14000a3a9
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a3a2
test byte [rcx + 0x1c], 2
je 0x14000a3a2
cmp byte [rcx + 0x19], 4
jb 0x14000a3a2
lea edx, [rbx + 0x41]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
xor edi, edi
jmp 0x14000a4f6
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a3d5
test byte [rcx + 0x1c], 2
je 0x14000a3d5
cmp byte [rcx + 0x19], 2
jb 0x14000a3d5
mov edx, 0x42
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
movups xmm0, xmmword [0x1400b3050]
movdqu xmmword [rbp - 0x18], xmm0
jmp 0x14000a4f6
mov rdx, rbx
mov rcx, rsi
call fcn.140009e84
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
nop dword [rax + rax]
test eax, eax
je 0x14000a434
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a42d
test byte [rcx + 0x1c], 2
je 0x14000a42d
cmp byte [rcx + 0x19], 4
jb 0x14000a42d
mov edx, 0x43
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
xor edi, edi
jmp 0x14000a4b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x430
jne 0x14000a47d
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a472
test byte [rcx + 0x1c], 2
je 0x14000a472
cmp byte [rcx + 0x19], 4
jb 0x14000a472
mov edx, 0x44
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
xor edi, edi
movups xmm0, xmmword [0x1400b3170]
jmp 0x14000a4b0
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14000a4a9
test byte [rcx + 0x1c], 2
je 0x14000a4a9
cmp byte [rcx + 0x19], 2
jb 0x14000a4a9
mov edx, 0x45
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
movups xmm0, xmmword [0x1400b3040]
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [r14 + 0x28]
sub rcx, 0x18
call fcn.1400055c8
add rax, 0x18
mov qword [rbp - 0x20], rax
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.14000a6c0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test edi, edi
jne 0x14000a246
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [r14 + 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140008c34
jmp 0x14000a2cc