Function at 0x140053620
Capabilities:
Query service status
Start service

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6f8]
sub rsp, 0x7f8
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r13, qword [rbp + 0x740]
xor r15d, r15d
mov dword [rsp + 0x40], r15d
lea r8d, [r15 + 1]
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp + 0x488], rax
test rax, rax
je 0x140053dfc
mov rdx, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400536a2
mov rdx, qword [r13]
mov r8d, 0x14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0x490], rax
test rax, rax
je 0x140053e2b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x468], xmm0
mov qword [rbp + 0x478], rax
mov dword [rbp + 0x480], eax
lea rdx, [rbp + 0x468]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140053e76
mov qword [rbp + 0x410], r13
cmp qword [r13 + 0x18], 7
jbe 0x14005370e
mov rax, qword [r13]
mov qword [rbp + 0x410], rax
mov r14, qword [r13 + 0x10]
xor r8d, r8d
mov rdx, r14
add rdx, 0x22
mov r12, 0xffffffffffffffff
cmovb rdx, r12
lea rcx, [rbp + 0x430]
call fcn.140007dc0
lea rsi, [rbp + 0x430]
cmp qword [rbp + 0x448], 7
cmova rsi, qword [rbp + 0x430]
lea r8d, [r12 + 0x45]
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rsi
call fcn.1400b15c0
lea rcx, [rsi + 0x44]
mov rax, qword [rbp + 0x410]
lea r8, [rax + r14*2]
sub r8, rax
mov rdx, rax
call fcn.1400b15c0
mov dword [rsp + 0x40], 7
lea rax, [rbp + 0x430]
cmp qword [rbp + 0x448], 7
cmova rax, qword [rbp + 0x430]
mov qword [rbp + 0x420], rax
mov rax, qword [rbp + 0x440]
mov qword [rbp + 0x428], rax
mov qword [rbp + 0x4a0], 0xffffffff80000002
movaps xmm0, xmmword [rbp + 0x420]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x4a8]
call fcn.1400066c0
mov qword [rbp + 0x6d8], r15
mov byte [rbp + 0x458], 0
lea rax, [rbp + 0x4a0]
mov qword [rbp + 0x460], rax
mov rax, qword [rbp + 0x4a0]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x4a8]
lea rcx, [rsp + 0x58]
call fcn.140006c60
mov eax, dword [rbp + 0x6d8]
mov dword [rbp + 0x188], eax
mov eax, dword [rbp + 0x6dc]
mov dword [rbp + 0x18c], eax
mov byte [rbp + 0x190], 1
lea rcx, [rsp + 0x50]
call fcn.14006b440
movzx esi, al
lea rcx, [rsp + 0x50]
call fcn.140007880
test sil, sil
je 0x140053855
mov byte [rbp + 0x458], 1
jmp 0x140053c91
xorps xmm0, xmm0
movups xmmword [rbp + 0x420], xmm0
mov rax, qword [rbp + 0x4a0]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x4a8]
lea rcx, [rsp + 0x58]
call fcn.140006c60
mov eax, dword [rbp + 0x6d8]
mov dword [rbp + 0x188], eax
mov eax, dword [rbp + 0x6dc]
mov dword [rbp + 0x18c], eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x420]
call fcn.140037920
nop
lea rax, str.ErrorControl
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x418], 0xc
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.1400b1de0
nop
mov rsi, qword [rbp + 0x420]
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 0
movaps xmm0, xmmword [rbp + 0x410]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400064a0
nop
mov dword [rsp + 0x40], 0x17
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rcx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rcx
mov rax, r12
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140053920
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1c8], rax
mov byte [rbp + 0x1d0], 0
mov byte [rbp + 0x408], 0
mov dword [rbp + 0x410], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x410]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1c8]
call fcn.14006b960
nop
lea rcx, [rbp + 0x1c8]
call fcn.140007880
mov dword [rsp + 0x40], 7
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x1400539b0
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005b30
movdqa xmm0, xmmword [0x1400fab10]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x1400539d3
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x1400539d8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400539ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400539ef
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, str.Start
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 5
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.1400b1de0
nop
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400064a0
nop
mov dword [rsp + 0x40], 0x27
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rcx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rcx
mov rax, r12
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140053a60
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1c8], rax
mov byte [rbp + 0x1d0], 0
mov byte [rbp + 0x408], 0
mov dword [rbp + 0x410], 3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x410]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1c8]
call fcn.14006b960
nop
lea rcx, [rbp + 0x1c8]
call fcn.140007880
mov dword [rsp + 0x40], 7
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140053af0
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005b30
movdqa xmm0, xmmword [0x1400fab10]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x140053b13
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x140053b18
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053b2f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053b2f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, str.Type
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 4
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.1400b1de0
nop
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400064a0
nop
mov dword [rsp + 0x40], 0xf
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
nop word [rax + rax]
inc r12
cmp word [rax + r12*2], 0
jne 0x140053ba0
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1c8], rax
mov byte [rbp + 0x1d0], 0
mov byte [rbp + 0x408], 0
mov eax, dword [rbp + 0x468]
mov dword [rbp + 0x410], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x410]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1c8]
call fcn.14006b960
nop
lea rcx, [rbp + 0x1c8]
call fcn.140007880
nop
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140053c2c
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005b30
movdqa xmm0, xmmword [0x1400fab10]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x140053c4f
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x140053c54
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053c6c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053c6c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp + 0x428], 0
cmove rsi, r15
test rsi, rsi
je 0x140053c91
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053c91
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbp + 0x46c]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x140053cc4
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140053cc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140053ec1
cmp byte [rbp + 0x458], 0
jne 0x140053ce8
lea rax, [rbp + 0x458]
mov qword [rbp + 0x410], rax
lea rcx, [rbp + 0x410]
call fcn.140054440
nop
mov r8, qword [rbp + 0x6d0]
cmp r8, 7
jbe 0x140053d08
mov rdx, qword [rbp + 0x6b8]
lea rcx, [rbp + 0x6b0]
call fcn.140007940
mov qword [rbp + 0x6c8], r15
mov qword [rbp + 0x6d0], 7
mov word [rbp + 0x6b8], r15w
lea rcx, [rbp + 0x430]
call fcn.140008480
nop
lea eax, [r15 + 0x65]
cmp eax, 0x63
jbe 0x140053d7e
cmp dword [rbp + 0x46c], 4
je 0x140053d67
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x468]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140053db6
add r15d, 0x64
jmp 0x140053d30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140053d93
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0x7f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.Unable_to_query_status_of_the_service__
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x2b
mov r9, r13
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x1a0]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp + 0x1a0]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_the_service_control_manager_
lea rcx, [rbp + 0x430]
call fcn.14006ebf0
lea rdx, [0x140114190]
lea rcx, [rbp + 0x430]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_the_service__
mov qword [rbp + 0x420], rcx
mov qword [rbp + 0x428], 0x20
mov r9, r13
lea r8, [rbp + 0x420]
mov edx, eax
lea rcx, [rbp + 0x430]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp + 0x430]
call fcn.140084768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_query_status_of_the_service__
mov qword [rbp + 0x420], rcx
mov qword [rbp + 0x428], 0x2b
mov r9, r13
lea r8, [rbp + 0x420]
mov edx, eax
lea rcx, [rbp + 0x430]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp + 0x430]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_start_the_service__
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x21
mov r9, r13
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x1a0]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp + 0x1a0]
call fcn.140084768
int3