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

Disassembly:
push rsi
sub rsp, 0xa0
mov rax, qword [0x1400c1060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
call fcn.14002f600
test al, al
je 0x14002f7cf
mov byte [rsi + 0x78], 1
mov al, 1
jmp 0x14002fa97
xor edx, edx
mov qword [rsp + 0x80], r15
xor ecx, ecx
mov byte [rsi + 0x78], 0
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r15, rax
test rax, rax
je 0x14002fa8f
cmp qword [rsi + 0x60], 0x10
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xc8], rdi
lea rdi, [rsi + 0x48]
mov qword [rsp + 0x90], r13
mov rdx, rdi
jb 0x14002f81e
mov rdx, qword [rdi]
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0xb8], rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r13d, r13d
mov rbp, rax
test rax, rax
jne 0x14002f965
cmp qword [rsi + 0x20], 0x10
mov rbx, qword [rsi + 0x68]
mov qword [rsp + 0x98], r12
mov r12d, dword [rsi + 0x70]
mov qword [rsp + 0x88], r14
lea r14, [rsi + 8]
mov rcx, r14
jb 0x14002f86d
mov rcx, qword [r14]
mov qword [rsp + 0x30], r13
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 0x14002f8d4
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r13d
mov r8d, r12d
mov qword [rsp + 0x20], r13
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 0x14002f8d4
cmp dword [rsp + 0x70], r12d
jne 0x14002f8d4
mov al, 1
jmp 0x14002f8d6
xor al, al
mov byte [rsi + 0x7b], al
cmp qword [r14 + 0x18], 0x10
mov r12, qword [rsp + 0x98]
jb 0x14002f8eb
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14002f8f8
mov rdx, qword [rdi]
mov qword [rsp + 0x60], r13
lea r8, [0x1400a2c26]
mov qword [rsp + 0x58], r13
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x50], r13
mov rcx, r15
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov r14, qword [rsp + 0x88]
mov rbp, rax
test rax, rax
jne 0x14002f961
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x14002fa6f
xor al, al
jmp 0x14002f967
mov al, 1
xor r8d, r8d
mov byte [rsi + 0x79], al
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14002fa55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x14002fa55
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rdi + 0x18], 0x10
jb 0x14002f9a4
mov rdi, qword [rdi]
mov r8d, reloc.WS2_32.dll_select
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x50], r13
mov edx, 0xffffffff
mov qword [rsp + 0x48], r13
mov r9d, edx
mov qword [rsp + 0x40], r13
mov r8d, 3
mov qword [rsp + 0x38], r13
mov rcx, rax
mov qword [rsp + 0x30], r13
mov rbp, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.GLE_
mov ebx, eax
call fcn.1400420f0
mov rcx, rax
lea rdx, [0x14002c930]
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 rcx, rax
mov edx, ebx
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, [0x1400422c0]
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 0x14002fa55
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne al
mov byte [rsi + 0x7a], al
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call fcn.14002f600
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x90]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140092b30
add rsp, 0xa0
pop rsi
ret