Function at 0x1400813c0
Capabilities:
Create service
Start service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f6010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140081405
mov rax, qword [rbx]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rcx
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.14008843c
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rbp + 7]
call fcn.14007db70
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14007dfa0
nop
lea rdx, [rbp + 0x2f]
mov rcx, rax
call fcn.14007de40
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140081489
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081484
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081484
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008860c
movdqa xmm0, xmmword [0x1402d7a60]
movdqu xmmword [rbp - 9], xmm0
xor esi, esi
mov word [rbp - 0x19], si
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1400814df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400814da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400814da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008860c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x14008158f
cmp qword [rbx + 0x18], 0x10
jb 0x140081503
mov rbx, qword [rbx]
lea r8, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae r8, qword [rbp + 0x2f]
lea rdx, [rbp + 0x2f]
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
test rax, rax
jne 0x1400815cb
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rdx, qword [rbp + 0x2f]
lea r8d, [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x1400815cb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor sil, sil
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x1400815f8
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400815f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400815f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne sil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140081592
call fcn.14008860c
movzx eax, sil
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400885e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret