Function at 0x1400ebac0
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 0x1400ebd3f
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x3d0], rbx
mov qword [rsp + 0x3d8], rdi
call fcn.14017d460
lea rdx, [0x1401b4940]
lea rcx, [rsp + 0x80]
call fcn.140177ed0
call fcn.1400ce420
test rax, rax
je 0x1400ebb54
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x80]
mov r8, rax
call fcn.140178b10
mov r8, qword [rsp + 0x88]
cmp byte [r8], 0
je 0x1400ebb84
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ebb6e
cmp al, 0x2f
jne 0x1400ebb72
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400ebb62
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x1a0]
mov edx, 0x101
call fcn.14017c650
lea rcx, [rsp + 0x80]
call fcn.1400012c0
lea rdx, [rsp + 0x1a0]
mov r8d, 0x24
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
jne 0x1400ebbe3
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 0x1400ebc7d
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 0x1400ebc36
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 0x1400ebc36
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 0x1400ebc74
mov edx, 0xea60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ebc6b
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 0x1400ebcf4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400ebce9
test esi, esi
je 0x1400ebce9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x1400ebce9
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.1400d5b50
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ebd2c
test esi, esi
je 0x1400ebd2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400ebd2c
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.1400d5b50
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x3d0]
jmp 0x1400ebd6a
test esi, esi
je 0x1400ebd6a
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.1400d5b50
lea rcx, str.InstallService
xor edx, edx
call fcn.1401460e0
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1401a8ec0
mov rbp, qword [rsp + 0x3e0]
add rsp, 0x3c0
pop rsi
ret