Function at 0x180001c20
Capabilities:
Create service
Modify service
Start service
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rax, qword [0x180141080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
call fcn.180001a80
test al, al
je 0x180001c4f
mov byte [rsi + 0x74], 1
mov al, 1
jmp 0x180001f0e
xor edx, edx
mov qword [rsp + 0x88], r14
xor ecx, ecx
mov byte [rsi + 0x74], 0
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x180001f06
cmp qword [rsi + 0x60], 0xf
lea rdx, [rsi + 0x48]
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0x90], r12
jbe 0x180001c95
mov rdx, qword [rdx]
mov qword [rsp + 0xb8], rbx
mov r8d, reloc.WS2_32.dll_recv
mov rcx, r14
mov qword [rsp + 0x98], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r12d, r12d
mov rbp, rax
test rax, rax
jne 0x180001dda
mov qword [rsp + 0x80], r15
call fcn.18000a420
cmp qword [rsi + 0x20], 0xf
lea rdi, [rsi + 8]
mov r15d, dword [rsi + 0x70]
mov rcx, rdi
mov rbx, qword [rsi + 0x68]
jbe 0x180001ce9
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180001d50
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
mov r8d, r15d
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180001d50
cmp dword [rsp + 0x70], r15d
jne 0x180001d50
mov al, 1
jmp 0x180001d52
xor al, al
mov byte [rsi + 0x77], al
cmp qword [rdi + 0x18], 0xf
mov r15, qword [rsp + 0x80]
jbe 0x180001d67
mov rdi, qword [rdi]
cmp qword [rsi + 0x60], 0xf
lea rdx, [rsi + 0x48]
jbe 0x180001d75
mov rdx, qword [rdx]
mov qword [rsp + 0x60], r12
lea r8, [0x1800b0ea0]
mov qword [rsp + 0x58], r12
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x50], r12
mov rcx, r14
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbp, rax
test rax, rax
jne 0x180001dd6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x180001ee6
xor al, al
jmp 0x180001ddc
mov al, 1
xor r8d, r8d
mov byte [rsi + 0x75], al
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x180001ecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x180001ecc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsi + 0x60], 0xf
lea rdx, [rsi + 0x48]
jbe 0x180001e1d
mov rdx, qword [rdx]
mov r8d, reloc.WS2_32.dll_select
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x50], r12
mov edx, 0xffffffff
mov qword [rsp + 0x48], r12
mov r9d, edx
mov qword [rsp + 0x40], r12
mov r8d, 3
mov qword [rsp + 0x38], r12
mov rcx, rax
mov qword [rsp + 0x30], r12
mov rbp, rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.GLE_
mov edi, eax
call fcn.18000ac30
lea rdx, [0x180001440]
mov rcx, rax
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 rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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 rcx, rax
lea rdx, [0x18000ae10]
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]
test edi, edi
je 0x180001ecc
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne al
mov byte [rsi + 0x76], al
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call fcn.180001a80
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x90]
mov r14, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800a1750
add rsp, 0xa0
pop rsi
ret