Function at 0x14001c970
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x98], 0
mov r9, qword [rsp + 0x108]
mov r8, qword [rsp + 0x100]
lea rdx, str.IPC_
mov rcx, qword [rsp + 0xf0]
call fcn.14001a8b0
mov qword [rsp + 0x98], rax
mov r9, qword [rsp + 0x108]
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf0]
lea rcx, str._lsIPC___username:__ls___password:__ls_
call fcn.140001b20
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0x98], 0
jne 0x14001ca61
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
lea rdx, [0x1400697c8]
mov rcx, qword [0x140079cc8]
call fcn.140005470
xor al, al
jmp 0x14001cd68
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8b, 1
lea rdx, str.connected
mov rcx, qword [0x140079cc8]
call fcn.140005470
mov r8d, 0xf003f
lea rdx, str.ServicesActive
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14001cb4d
call fcn.140019370
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x100]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xf0]
lea rcx, str.Remote_Host_:__ls____Service_Name_:__ls__username:__ls___password:__ls_
call fcn.140001b20
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x88], 0
je 0x14001cc45
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, [0x1400698b0]
mov rcx, qword [0x140079cc8]
call fcn.140005470
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14001cc0b
lea rax, str.Success
mov qword [rsp + 0xb0], rax
jmp 0x14001cc1a
lea rax, str.Failed
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xb0]
lea rdx, str.log:DeleteService____s_n
mov rcx, qword [0x140079cc8]
call fcn.140004980
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001cc79
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
lea rdx, str.createService
mov rcx, qword [0x140079cc8]
call fcn.140005470
mov rcx, qword [rsp + 0x98]
call fcn.14001a960
cmp qword [rsp + 0x90], 0
je 0x14001cc9f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x78], 0
je 0x14001ccc6
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov edx, 2
mov rcx, qword [rsp + 0xb8]
call fcn.14001ec60
cmp qword [rsp + 0xa0], 0
je 0x14001ccf3
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov edx, 2
mov rcx, qword [rsp + 0xc0]
call fcn.14001ec60
cmp qword [rsp + 0x98], 0
je 0x14001cd20
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov edx, 2
mov rcx, qword [rsp + 0xc8]
call fcn.14001ec60
cmp qword [rsp + 0xa8], 0
je 0x14001cd4d
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
mov edx, 2
mov rcx, qword [rsp + 0xd0]
call fcn.14001ec60
cmp dword [rsp + 0x80], 0
je 0x14001cd5e
mov byte [rsp + 0x70], 1
jmp 0x14001cd63
mov byte [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
add rsp, 0xe8
ret