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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x78], 0
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x1400b4f92
xor al, al
jmp 0x1400b528c
mov rax, qword [rsp + 0xb0]
add rax, 0x48
mov rcx, rax
call fcn.140018690
mov r8d, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400b5104
mov rax, qword [rsp + 0xb0]
add rax, 8
mov dword [rsp + 0x20], 1
mov r9, rax
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 0x70]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0xb0]
call fcn.1400b4970
movzx eax, al
test eax, eax
je 0x1400b5025
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x7b], 1
jmp 0x1400b5031
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x7b], 0
mov rax, qword [rsp + 0xb0]
add rax, 8
mov rcx, rax
call fcn.140018690
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xb0]
add rcx, 0x48
call fcn.140018690
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 rcx, qword [rsp + 0x90]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10
lea r8, [0x1401ace26]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400b50f6
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400b528c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x79], 0
jmp 0x1400b5110
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x79], 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x1400b526e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x1400b526e
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rsp + 0xb0]
add rax, 0x48
mov rcx, rax
call fcn.140018690
mov r8d, 0x12
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x80], 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 + 0x80]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [rsp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
lea rdx, str.GLE_
lea rcx, [0x1401c2670]
call fcn.1400366d0
lea rdx, [0x1400b48e0]
mov rcx, rax
call fcn.1400b76d0
mov ecx, dword [rsp + 0x74]
mov edx, ecx
mov rcx, rax
call fcn.1400b7290
lea rdx, [0x1400b98b0]
mov rcx, rax
call fcn.1400b7710
cmp dword [rsp + 0x78], 0
je 0x1400b526e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x1400b5262
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x7a], 1
jmp 0x1400b526e
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x7a], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0xa8
ret