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

Disassembly:
push rsi
sub rsp, 0x90
mov rsi, rcx
call fcn.14003b090
test al, al
je 0x14003b2d7
mov byte [rsi + 0x90], 1
mov al, 1
add rsp, 0x90
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x78], r14
xor ecx, ecx
mov byte [rsi + 0x90], 0
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
jne 0x14003b307
mov r14, qword [rsp + 0x78]
add rsp, 0x90
pop rsi
ret
cmp qword [rsi + 0x78], 0x10
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rdi
lea rdi, [rsi + 0x60]
mov qword [rsp + 0x80], r13
jb 0x14003b32f
mov rdx, qword [rdi]
jmp 0x14003b332
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0xa0], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r13d, r13d
mov rbp, rax
test rax, rax
jne 0x14003b489
cmp qword [rsi + 0x28], 0x10
mov rbx, qword [rsi + 0x80]
mov qword [rsp + 0x88], r12
mov r12d, dword [rsi + 0x88]
mov qword [rsp + 0x70], r15
lea r15, [rsi + 0x10]
jb 0x14003b383
mov rcx, qword [r15]
jmp 0x14003b386
mov rcx, r15
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 0x14003b3f6
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 0x14003b3f6
cmp dword [rsp + 0xa8], r12d
jne 0x14003b3f6
mov al, 1
jmp 0x14003b3f8
xor al, al
mov byte [rsi + 0x93], al
cmp qword [rsi + 0x28], 0x10
mov r12, qword [rsp + 0x88]
jb 0x14003b410
mov r15, qword [r15]
cmp qword [rsi + 0x78], 0x10
jb 0x14003b41c
mov rdx, qword [rdi]
jmp 0x14003b41f
mov rdx, rdi
mov qword [rsp + 0x60], r13
lea r8, [0x14021d1ee]
mov qword [rsp + 0x58], r13
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x50], r13
mov rcx, r14
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov r15, qword [rsp + 0x70]
mov rbp, rax
test rax, rax
jne 0x14003b485
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x14003b59a
xor al, al
jmp 0x14003b48b
mov al, 1
xor r8d, r8d
mov byte [rsi + 0x91], al
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14003b580
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x14003b580
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsi + 0x78], 0x10
jb 0x14003b4cb
mov rdi, qword [rdi]
mov r8d, reloc.WS2_32.dll_select
mov rdx, rdi
mov rcx, r14
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]
lea rdx, str.GLE_
mov edi, eax
lea rcx, [0x140341780]
call fcn.14005db00
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff3ff
bts ecx, 9
mov dword [rdx + rax + 0x18], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400577c0
mov rcx, rax
call fcn.14005ddb0
test edi, edi
je 0x14003b580
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne al
mov byte [rsi + 0x92], 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.14003b090
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
add rsp, 0x90
pop rsi
ret