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

Disassembly:
push rsi
sub rsp, 0x90
mov rsi, rcx
call fcn.140035f50
test al, al
je 0x1400361b4
mov byte [rsi + 0x78], 1
mov al, 1
add rsp, 0x90
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x70], 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
jne 0x1400361e1
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rsi
ret
cmp qword [rsi + 0x60], 0x10
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rdi
lea rdi, [rsi + 0x48]
mov qword [rsp + 0x80], r13
mov rdx, rdi
jb 0x14003620a
mov rdx, qword [rdi]
mov r8d, 0x10
mov qword [rsp + 0xa0], rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r13d, r13d
mov rbp, rax
test rax, rax
jne 0x140036354
cmp qword [rsi + 0x20], 0x10
mov rbx, qword [rsi + 0x68]
mov qword [rsp + 0x88], r12
mov r12d, dword [rsi + 0x70]
mov qword [rsp + 0x78], r14
lea r14, [rsi + 8]
mov rcx, r14
jb 0x140036256
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 0x1400362c6
lea r9, [rsp + 0xa8]
mov dword [rsp + 0xa8], 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 0x1400362c6
cmp dword [rsp + 0xa8], r12d
jne 0x1400362c6
mov al, 1
jmp 0x1400362c8
xor al, al
mov byte [rsi + 0x7b], al
cmp qword [r14 + 0x18], 0x10
mov r12, qword [rsp + 0x88]
jb 0x1400362dd
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x1400362ea
mov rdx, qword [rdi]
mov qword [rsp + 0x60], r13
lea r8, [0x140045956]
mov qword [rsp + 0x58], r13
mov r9d, 0x10
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 + 0x78]
mov rbp, rax
test rax, rax
jne 0x140036350
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x14003645e
xor al, al
jmp 0x140036356
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 0x140036444
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x140036444
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rdi + 0x18], 0x10
jb 0x140036393
mov rdi, qword [rdi]
mov r8d, 0x12
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.140042b40
mov rcx, rax
lea rdx, [0x140034fd0]
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, [0x140042d10]
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 0x140036444
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.140035f50
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov r13, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rsi
ret