Function at 0x1400ebaf0
Capabilities:
Delete service
Stop service
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x3c0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov esi, ecx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbp, rax
je 0x1400ebd6f
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x3d0], rbx
mov qword [rsp + 0x3d8], rdi
call fcn.140177280
lea rdx, [0x1401b4940]
lea rcx, [rsp + 0x80]
call fcn.140177fb0
call fcn.1400ce420
test rax, rax
je 0x1400ebb84
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x80]
mov r8, rax
call fcn.140178bf0
mov r8, qword [rsp + 0x88]
cmp byte [r8], 0
je 0x1400ebbb4
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ebb9e
cmp al, 0x2f
jne 0x1400ebba2
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400ebb92
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x1a0]
mov edx, 0x101
call fcn.14017c730
lea rcx, [rsp + 0x80]
call fcn.14017d580
lea rdx, [rsp + 0x1a0]
mov r8d, 0x24
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
jne 0x1400ebc13
lea r8d, [rax + 4]
lea rdx, [rsp + 0x1a0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400ebcad
lea rax, [rsp + 0x30]
xor ebx, ebx
lea r8, [rsp + 0x38]
lea r9d, [rbx + 0x24]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [0x140203b50]
test eax, eax
je 0x1400ebc66
mov r8d, dword [rsp + 0x54]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rbx, rax
jne 0x1400ebc66
mov r8d, dword [rsp + 0x54]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test rbx, rbx
je 0x1400ebca4
mov edx, 0xea60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ebc9b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x1a0]
mov r8d, 0x10000
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, qword [rsp + 0x3d8]
test rax, rax
mov rbx, rax
je 0x1400ebd24
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400ebd19
test esi, esi
je 0x1400ebd19
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x1400ebd19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x20a0]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b60
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ebd5c
test esi, esi
je 0x1400ebd5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400ebd5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2078]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b60
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x3d0]
jmp 0x1400ebd9a
test esi, esi
je 0x1400ebd9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2088]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b60
lea rcx, str.InstallService
xor edx, edx
call fcn.140146120
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1401a8fb0
mov rbp, qword [rsp + 0x3e0]
add rsp, 0x3c0
pop rsi
ret