Function at 0x14000afd0
Capabilities:
Query service status
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r14, rdx
mov qword [rsp + 0x78], rdx
mov r15, r8
mov qword [rsp + 0x70], r8
xor edi, edi
lea rax, str.restart:__
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], recvfrom
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14000b037
mov rcx, qword [rdx]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
movups xmm0, xmmword [rsp + 0xf0]
movups xmmword [rsp + 0xa8], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xf0], 1
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xf8], rax
movaps xmm0, xmmword [rsp + 0xf0]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.140022d90
nop
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 7
cmova rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
mov rcx, r15
call fcn.1400237f0
nop
lea rcx, [rsp + 0xb8]
call fcn.140025e80
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call fcn.14005eef0
mov r8d, 1
mov edx, ebx
mov ecx, dword [rax]
call fcn.140032de0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov byte [rsp + 0xf0], 0
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xf8], rax
xor edx, edx
call fcn.14007ca00
mov rcx, r14
call fcn.140023620
test al, al
jne 0x14000b3ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_StopService:__
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0x1b
mov dword [rsp + 0x58], eax
movabs r12, 0x2000000000000000
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb8]
call fcn.140022d90
nop
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 7
cmova rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
mov rcx, r15
call fcn.1400237f0
nop
lea rcx, [rsp + 0xb8]
call fcn.140025e80
xor r13b, r13b
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14000b2ff
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14000b21b
mov rdx, qword [r14]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000b2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14000b2e0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
mov dword [rsp + 0xd8], eax
mov dword [rsp + 0xe0], edi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0xb8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b2d8
mov r8d, dword [rsp + 0xd4]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne r13b
test eax, eax
jne 0x14000b2c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x14000b2eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b2eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x14000b2f4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000b305
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r13b, r13b
jne 0x14000b3b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_KillProcess:_
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x19
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb8]
call fcn.140022d90
nop
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 7
cmova rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
mov rcx, r15
call fcn.1400237f0
nop
lea rcx, [rsp + 0xb8]
call fcn.140025e80
jmp 0x14000b3b7
movabs r12, 0x2000000000000000
cmp byte [rsp + 0xf0], 0
jne 0x14000b3c7
call fcn.14000bb40
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call fcn.14005eef0
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rax]
call fcn.140032de0
nop
jmp 0x14000b3f7
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x4e20
mov rcx, r14
call fcn.140025560
movzx ebx, al
test al, al
jne 0x14000b4b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_LaunchService:__
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x1d
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb8]
call fcn.140022d90
nop
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 7
cmova rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
mov rcx, r15
call fcn.1400237f0
nop
lea rcx, [rsp + 0xb8]
call fcn.140025e80
nop
jmp 0x14000b4c4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, bl
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140133600
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret