Function at 0x140112b50
Capabilities:
Create service
Modify service
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x78], 0
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140112b92
xor al, al
jmp 0x140112eb2
mov rax, qword [rsp + 0xd0]
add rax, 0x48
mov rcx, rax
call fcn.1400178f0
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140112d08
mov rax, qword [rsp + 0xd0]
add rax, 8
mov dword [rsp + 0x20], 1
mov r9, rax
mov rax, qword [rsp + 0xd0]
mov r8d, dword [rax + 0x70]
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0xd0]
call fcn.140112550
movzx eax, al
test eax, eax
je 0x140112c1f
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x7b], 1
jmp 0x140112c2b
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x7b], 0
mov rax, qword [rsp + 0xd0]
add rax, 8
mov rcx, rax
call fcn.1400178f0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x48
mov rcx, rax
call fcn.1400178f0
mov qword [rsp + 0x98], 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 + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1401fa600]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140112cfa
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140112eb2
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x79], 0
jmp 0x140112d14
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x79], 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x140112e97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x140112e97
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rsp + 0xd0]
add rax, 0x48
mov rcx, rax
call fcn.1400178f0
mov r8d, reloc.WS2_32.dll_select
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, 3
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [rsp + 0x8c], eax
lea rdx, [0x1401fab50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001ca40
mov qword [rsp + 0xa0], rax
lea rdx, [0x1401124c0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov qword [rsp + 0xb0], rax
lea rdx, [0x14001ce20]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rsp + 0x8c], 0
je 0x140112e97
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x140112e8b
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x7a], 1
jmp 0x140112e97
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x7a], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0xc8
ret