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

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x3c0
mov rax, qword [0x1401f22c8]
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 0x1400dab3f
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x3d0], rbx
mov qword [rsp + 0x3d8], rdi
call fcn.1401617b0
lea rdx, [0x14019e570]
lea rcx, [rsp + 0x80]
call fcn.1401624e0
call fcn.1400bd380
test rax, rax
je 0x1400da954
call fcn.1400bd380
lea rdx, str.___s_
lea rcx, [rsp + 0x80]
mov r8, rax
call fcn.140163070
mov r8, qword [rsp + 0x88]
cmp byte [r8], 0
je 0x1400da984
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400da96e
cmp al, 0x2f
jne 0x1400da972
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400da962
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x1a0]
mov edx, 0x101
call fcn.140166980
lea rcx, [rsp + 0x80]
call fcn.140001150
lea rdx, [rsp + 0x1a0]
mov r8d, 0x24
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
jne 0x1400da9e3
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 0x1400daa7d
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 [0x1401e91c0]
test eax, eax
je 0x1400daa36
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 0x1400daa36
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 0x1400daa74
mov edx, 0xea60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400daa6b
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 0x1400daaf4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400daae9
test esi, esi
je 0x1400daae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x1400daae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400dab2c
test esi, esi
je 0x1400dab2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400dab2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x3d0]
jmp 0x1400dab6a
test esi, esi
je 0x1400dab6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
lea rcx, str.InstallService
xor edx, edx
call fcn.1401322c0
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1401931f0
mov rbp, qword [rsp + 0x3e0]
add rsp, 0x3c0
pop rsi
ret