Function at 0x140009270
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000938c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x41]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
mov r8d, edx
shr r8d, 3
movzx ecx, r8w
shl cx, 2
lea edx, [rcx + r8]
add dx, dx
sub r9w, dx
add r9w, 0x30
mov word [r10], r9w
mov r9d, r8d
test r8d, r8d
jne 0x1400092c1
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], bx
lea rax, [rbp + 0x41]
cmp r10, rax
je 0x14000932e
lea r8, [rbp + 0x41]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x29]
call fcn.1400023b0
nop
lea r8, [rbp - 0x29]
lea rdx, str.Failed_to_open_Service_Control_Manager._Error_code:
lea rcx, [rbp - 9]
call fcn.140006570
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14000957f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009382
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009742
call fcn.14003ba0c
jmp 0x14000957f
mov r8d, socket
lea rdx, str.termservice
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140009486
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x41]
nop dword [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x1400093c0
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], bx
lea rax, [rbp + 0x41]
cmp r10, rax
je 0x140009428
lea r8, [rbp + 0x41]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x29]
call fcn.1400023b0
nop
lea r8, [rbp - 0x29]
lea rdx, str.Failed_to_open_service._Error_code:
lea rcx, [rbp - 9]
call fcn.140006570
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140009576
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000947c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009748
call fcn.14003ba0c
jmp 0x140009576
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400095c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x41]
nop dword [rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x1400094b0
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], bx
lea rax, [rbp + 0x41]
cmp r10, rax
je 0x140009518
lea r8, [rbp + 0x41]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x29]
call fcn.1400023b0
nop
lea r8, [rbp - 0x29]
lea rdx, str.Failed_to_start_service._Error_code:
lea rcx, [rbp - 9]
call fcn.140006570
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14000956d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000974e
call fcn.14003ba0c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1400095bf
mov rcx, qword [rbp - 9]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095ba
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000973c
call fcn.14003ba0c
xor al, al
jmp 0x140009717
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], bx
lea r8d, [rbx + 0xb]
lea rdx, str.termservice
lea rcx, [rbp - 0x29]
call fcn.1400023b0
nop
lea r8, [rbp - 0x29]
lea rdx, str.Service_
lea rcx, [rbp + 0x17]
call fcn.140006570
nop
lea r8d, [rbx + 0x17]
lea rdx, str._started_successfully.
mov rcx, rax
call fcn.140006a70
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140009677
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009672
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009754
call fcn.14003ba0c
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], bx
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400096c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400096c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000975a
call fcn.14003ba0c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140009715
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000973c
call fcn.14003ba0c
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003b9b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140042fc0
int3
call fcn.140042fc0
int3
call fcn.140042fc0
int3
call fcn.140042fc0
nop
call fcn.140042fc0
nop
call fcn.140042fc0
int3