Function at 0x140082970
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 [0x1402f7010]
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 0x1400829b5
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.140089cac
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rbp + 7]
call fcn.14007daf0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14007df20
nop
lea rdx, [rbp + 0x2f]
mov rcx, rax
call fcn.14007ddc0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140082a39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082a34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082a34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089e7c
movdqa xmm0, xmmword [0x1402d8a70]
movdqu xmmword [rbp - 9], xmm0
xor esi, esi
mov word [rbp - 0x19], si
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140082a8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082a8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082a8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089e7c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140082b3f
cmp qword [rbx + 0x18], 0x10
jb 0x140082ab3
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 0x140082b7b
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 0x140082b7b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor sil, sil
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x140082ba8
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082ba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082ba3
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 0x140082b42
call fcn.140089e7c
movzx eax, sil
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140089e50
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