Function at 0x1400539c0
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 - 0x6d8]
sub rsp, 0x7d8
mov rax, qword [0x140117240]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov r12, qword [rbp + 0x720]
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 + 0x470], rax
test rax, rax
je 0x14005418c
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140053a43
mov rdx, qword [r12]
mov r8d, 0x14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0x478], rax
test rax, rax
je 0x1400541bb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x450], xmm0
mov qword [rbp + 0x460], rax
mov dword [rbp + 0x468], eax
lea rdx, [rbp + 0x450]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140054206
mov r13, r12
cmp qword [r12 + 0x18], 7
jbe 0x140053aa5
mov r13, qword [r12]
mov r14, qword [r12 + 0x10]
xor r8d, r8d
lea rdx, [r14 + 0x22]
lea rcx, [rbp + 0x400]
call fcn.1400080a0
lea rsi, [rbp + 0x400]
cmp qword [rbp + 0x418], 7
cmova rsi, qword [rbp + 0x400]
mov r8d, 0x44
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rsi
call fcn.1400b20f0
lea rcx, [rsi + 0x44]
lea r8, [r14*2]
add r8, r13
sub r8, r13
mov rdx, r13
call fcn.1400b20f0
mov dword [rsp + 0x40], 7
lea rax, [rbp + 0x400]
cmp qword [rbp + 0x418], 7
cmova rax, qword [rbp + 0x400]
mov qword [rbp + 0x420], rax
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x428], rax
mov qword [rbp + 0x480], 0xffffffff80000002
movaps xmm0, xmmword [rbp + 0x420]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x488]
call fcn.140006830
mov qword [rbp + 0x6b8], r15
mov byte [rbp + 0x440], 0
lea rax, [rbp + 0x480]
mov qword [rbp + 0x448], rax
mov rax, qword [rbp + 0x480]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x488]
lea rcx, [rsp + 0x58]
call fcn.140006dd0
mov eax, dword [rbp + 0x6b8]
mov dword [rbp + 0x188], eax
mov eax, dword [rbp + 0x6bc]
mov dword [rbp + 0x18c], eax
mov byte [rbp + 0x190], 1
lea rcx, [rsp + 0x50]
call fcn.14006a040
movzx esi, al
lea rcx, [rsp + 0x50]
call fcn.140007b60
test sil, sil
je 0x140053be0
mov byte [rbp + 0x440], 1
jmp 0x140054020
xorps xmm0, xmm0
movups xmmword [rbp + 0x420], xmm0
mov rax, qword [rbp + 0x480]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x488]
lea rcx, [rsp + 0x58]
call fcn.140006dd0
mov eax, dword [rbp + 0x6b8]
mov dword [rbp + 0x188], eax
mov eax, dword [rbp + 0x6bc]
mov dword [rbp + 0x18c], eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x420]
call fcn.1400377a0
nop
lea rax, str.ErrorControl
mov qword [rbp + 0x3f0], rax
mov qword [rbp + 0x3f8], 0xc
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.1400b2790
nop
mov r14, qword [rbp + 0x420]
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x58], 0
movaps xmm0, xmmword [rbp + 0x3f0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140006610
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 rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140053cb0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1a0], rax
mov byte [rbp + 0x1a8], 0
mov byte [rbp + 0x3e0], 0
mov dword [rbp + 0x3f0], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.14006a610
nop
lea rcx, [rbp + 0x1a0]
call fcn.140007b60
mov dword [rsp + 0x40], 7
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140053d40
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005ca0
movdqa xmm0, xmmword [0x1400fb140]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x140053d63
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x140053d68
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053d7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053d7f
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.1400b2790
nop
mov qword [rsp + 0x50], r14
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.140006610
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, rsi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140053df0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1a0], rax
mov byte [rbp + 0x1a8], 0
mov byte [rbp + 0x3e0], 0
mov dword [rbp + 0x3f0], 3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.14006a610
nop
lea rcx, [rbp + 0x1a0]
call fcn.140007b60
mov dword [rsp + 0x40], 7
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140053e80
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005ca0
movdqa xmm0, xmmword [0x1400fb140]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x140053ea3
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x140053ea8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053ebf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053ebf
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.1400b2790
nop
mov qword [rsp + 0x50], r14
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.140006610
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 rsi
cmp word [rax + rsi*2], 0
jne 0x140053f30
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x1a0], rax
mov byte [rbp + 0x1a8], 0
mov byte [rbp + 0x3e0], 0
mov eax, dword [rbp + 0x450]
mov dword [rbp + 0x3f0], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.14006a610
nop
lea rcx, [rbp + 0x1a0]
call fcn.140007b60
nop
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140053fbb
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140005ca0
movdqa xmm0, xmmword [0x1400fb140]
movdqa xmmword [rbp], xmm0
mov word [rbp - 0x10], r15w
cmp byte [rsp + 0x58], 0
jne 0x140053fde
mov rcx, r15
mov qword [rsp + 0x50], rcx
jmp 0x140053fe3
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053ffb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140053ffb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [rbp + 0x428], 0
cmove r14, r15
test r14, r14
je 0x140054020
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140054020
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbp + 0x454]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x140054053
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140054053
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140054251
cmp byte [rbp + 0x440], 0
jne 0x140054077
lea rax, [rbp + 0x440]
mov qword [rbp + 0x3f0], rax
lea rcx, [rbp + 0x3f0]
call fcn.1400547d0
nop
mov r8, qword [rbp + 0x6b0]
cmp r8, 7
jbe 0x140054097
mov rdx, qword [rbp + 0x698]
lea rcx, [rbp + 0x690]
call fcn.140007c20
mov qword [rbp + 0x6a8], r15
mov qword [rbp + 0x6b0], 7
mov word [rbp + 0x698], r15w
lea rcx, [rbp + 0x400]
call fcn.140008760
nop dword [rax]
lea eax, [r15 + 0x65]
cmp eax, 0x63
jbe 0x14005410e
cmp dword [rbp + 0x454], 4
je 0x1400540f7
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x450]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140054146
add r15d, 0x64
jmp 0x1400540c0
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 0x140054123
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 + 0x6c0]
xor rcx, rsp
call fcn.1400827b0
add rsp, 0x7d8
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, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.14002d1b0
lea rdx, [0x140114310]
lea rcx, [rbp + 0x400]
call fcn.1400850a4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_the_service_control_manager_
lea rcx, [rbp + 0x400]
call fcn.14001b060
lea rdx, [0x140114310]
lea rcx, [rbp + 0x400]
call fcn.1400850a4
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, r12
lea r8, [rbp + 0x420]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.14002d1b0
lea rdx, [0x140114310]
lea rcx, [rbp + 0x400]
call fcn.1400850a4
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, r12
lea r8, [rbp + 0x420]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.14002d1b0
lea rdx, [0x140114310]
lea rcx, [rbp + 0x400]
call fcn.1400850a4
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, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x420]
call fcn.14002d1b0
lea rdx, [0x140114310]
lea rcx, [rbp + 0x420]
call fcn.1400850a4
int3