Function at 0x1400070d0
Capabilities:
Delete service

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400f6388]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
lea r15, [0x1400f3190]
lea r12, [0x1400cdbb8]
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x140007134
test byte [rcx + 0x1c], 1
je 0x140007134
mov edx, 0x3f
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
movups xmm0, xmmword [0x1400cd6b0]
movdqu xmmword [rbp - 0x18], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140007289
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x14000718e
test byte [rcx + 0x1c], 2
je 0x14000718e
cmp byte [rcx + 0x19], 2
jb 0x14000718e
lea edx, [rbx + 0x40]
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
cmp edi, 5
jne 0x140007278
movups xmm0, xmmword [0x1400cd5a0]
movdqu xmmword [rbp - 0x18], xmm0
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rbp - 0x30], rax
mov r8d, edi
lea rdx, [0x1400cdba0]
lea rcx, [rbp - 0x30]
call fcn.140008fe8
and qword [rsp + 0x20], 0
mov rbx, qword [rbp - 0x30]
mov r9, rbx
mov r8, qword [r14 + 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140005ea8
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007215
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x140007251
test byte [rcx + 0x1c], 1
je 0x140007251
movzx r9d, byte [rcx + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x140007251
mov edx, 0x46
mov r9d, edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c13a0
lea r11, [rsp + 0x60]
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 [0x1400cd590]
movdqu xmmword [rbp - 0x18], xmm0
jmp 0x14000741a
mov r8d, 0x10024
mov rdx, qword [r14 + 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14000731e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x424
jne 0x1400072e1
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x1400072da
test byte [rcx + 0x1c], 2
je 0x1400072da
cmp byte [rcx + 0x19], 4
jb 0x1400072da
lea edx, [rsi + 0x41]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
xor edi, edi
jmp 0x140007411
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x14000730d
test byte [rcx + 0x1c], 2
je 0x14000730d
cmp byte [rcx + 0x19], 2
jb 0x14000730d
mov edx, 0x42
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
movups xmm0, xmmword [0x1400cd580]
movdqu xmmword [rbp - 0x18], xmm0
jmp 0x140007411
mov rdx, rsi
mov rcx, rbx
call fcn.140006eb4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140007363
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x14000735f
test byte [rcx + 0x1c], 2
je 0x14000735f
cmp byte [rcx + 0x19], 4
jb 0x14000735f
mov edx, 0x43
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
xor edi, edi
jmp 0x1400073de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x430
jne 0x1400073a6
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x14000739b
test byte [rcx + 0x1c], 2
je 0x14000739b
cmp byte [rcx + 0x19], 4
jb 0x14000739b
mov edx, 0x44
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
xor edi, edi
movups xmm0, xmmword [0x1400cd6a0]
jmp 0x1400073d9
mov rcx, qword [0x1400f3190]
cmp rcx, r15
je 0x1400073d2
test byte [rcx + 0x1c], 2
je 0x1400073d2
cmp byte [rcx + 0x19], 2
jb 0x1400073d2
mov edx, 0x45
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
movups xmm0, xmmword [0x1400cd570]
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [r14 + 0x28]
sub rcx, 0x18
call fcn.140004c9c
add rax, 0x18
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.1400069d8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x1400071a3
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [r14 + 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140005ea8
jmp 0x140007215