Function at 0x140048860
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 [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov ebx, dword [rbp + 0x728]
mov r13d, dword [rbp + 0x730]
mov dword [rbp + 0x420], r13d
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea r8d, [r12 + 1]
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp + 0x468], rax
test rax, rax
je 0x14004918e
lea rsi, [0x1402bff18]
mov rdx, rsi
cmp qword [0x1402bff30], 7
cmova rdx, qword [0x1402bff18]
or ebx, 4
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0x470], rax
test rax, rax
je 0x1400491bd
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x428], xmm0
mov qword [rbp + 0x438], rax
mov dword [rbp + 0x440], eax
lea rdx, [rbp + 0x428]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140049213
mov r15, rsi
cmp qword [0x1402bff30], 7
cmova r15, qword [0x1402bff18]
mov r14, qword [0x1402bff28]
xor r8d, r8d
lea rdx, [r14 + 0x22]
lea rcx, [rbp + 0x400]
call fcn.140028660
lea rsi, [rbp + 0x400]
cmp qword [rbp + 0x418], 7
cmova rsi, qword [rbp + 0x400]
lea r8d, [r12 + 0x44]
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rsi
call fcn.1401d7a40
lea rcx, [rsi + 0x44]
lea r8, [r15 + r14*2]
sub r8, r15
mov rdx, r15
call fcn.1401d7a40
nop
lea rax, [rbp + 0x400]
cmp qword [rbp + 0x418], 7
cmova rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e0], rax
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x480], 0xffffffff80000002
movaps xmm0, xmmword [rbp + 0x3e0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x488]
call fcn.14003db70
mov qword [rbp + 0x6b8], r12
mov byte [rbp + 0x3f0], r12b
lea rax, [rbp + 0x480]
mov qword [rbp + 0x3f8], rax
mov rax, qword [rbp + 0x480]
mov qword [rbp + 0x190], rax
lea rdx, [rbp + 0x488]
lea rcx, [rbp + 0x198]
call fcn.14003dde0
mov eax, dword [rbp + 0x6b8]
mov dword [rbp + 0x3c8], eax
mov eax, dword [rbp + 0x6bc]
mov dword [rbp + 0x3cc], eax
mov byte [rbp + 0x3d0], 1
lea rcx, [rbp + 0x190]
call fcn.14005af40
movzx esi, al
lea rcx, [rbp + 0x190]
call fcn.14003da50
test sil, sil
je 0x140048a98
mov byte [rbp + 0x3f0], 1
jmp 0x140048f9a
xorps xmm0, xmm0
movups xmmword [rbp + 0x448], xmm0
mov rax, qword [rbp + 0x480]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x488]
lea rcx, [rsp + 0x58]
call fcn.14003dde0
mov eax, dword [rbp + 0x6b8]
mov dword [rbp + 0x188], eax
mov eax, dword [rbp + 0x6bc]
mov dword [rbp + 0x18c], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x190], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x198]
call fcn.14003dde0
mov eax, dword [rbp + 0x18c]
mov dword [rbp + 0x3cc], eax
mov dword [rbp + 0x3c8], 2
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3e0]
call fcn.14005ad70
mov r14, qword [rax]
mov qword [rax], r12
mov qword [rbp + 0x448], r14
mov byte [rbp + 0x450], 1
mov dword [rsp + 0x40], 0x47
mov rcx, qword [rbp + 0x3e0]
test rcx, rcx
je 0x140048b61
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140048b61
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x3e0], r12
mov r8, qword [rbp + 0x3c0]
cmp r8, 7
jbe 0x140048b88
mov rdx, qword [rbp + 0x3a8]
lea rcx, [rbp + 0x3a0]
call fcn.14003df00
mov qword [rbp + 0x3b8], r12
mov qword [rbp + 0x3c0], 7
mov word [rbp + 0x3a8], r12w
mov r8, qword [rbp + 0x180]
cmp r8, 7
jbe 0x140048bc3
mov rdx, qword [rbp + 0x168]
lea rcx, [rbp + 0x160]
call fcn.14003df00
nop
lea rax, str.ErrorControl
mov qword [rbp + 0x3e0], rax
mov qword [rbp + 0x3e8], 0xc
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.1401d80e0
nop
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x58], 0
movaps xmm0, xmmword [rbp + 0x3e0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140049920
nop
mov dword [rsp + 0x40], 0x57
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
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140048c40
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x190], rax
mov byte [rbp + 0x198], 0
mov byte [rbp + 0x3d0], 0
mov dword [rbp + 0x3e0], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.14005b670
nop
lea rcx, [rbp + 0x190]
call fcn.14003da50
mov dword [rsp + 0x40], 0x47
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140048cd0
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140049650
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
cmp byte [rsp + 0x58], 0
jne 0x140048cf2
mov rcx, r12
mov qword [rsp + 0x50], rcx
jmp 0x140048cf7
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140048d0e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140048d0e
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.1401d80e0
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.140049920
nop
mov dword [rsp + 0x40], 0x67
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rcx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rcx
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140048d80
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x190], rax
mov byte [rbp + 0x198], 0
mov byte [rbp + 0x3d0], 0
mov dword [rbp + 0x3e0], 3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.14005b670
nop
lea rcx, [rbp + 0x190]
call fcn.14003da50
mov dword [rsp + 0x40], 0x47
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140048e10
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140049650
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
cmp byte [rsp + 0x58], 0
jne 0x140048e32
mov rcx, r12
mov qword [rsp + 0x50], rcx
jmp 0x140048e37
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140048e4e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140048e4e
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.1401d80e0
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.140049920
nop
mov dword [rsp + 0x40], 0x4f
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140048eb6
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x190], rax
mov byte [rbp + 0x198], 0
mov byte [rbp + 0x3d0], 0
mov eax, dword [rbp + 0x428]
mov dword [rbp + 0x3e0], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 4
mov r9d, 4
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.14005b670
nop
lea rcx, [rbp + 0x190]
call fcn.14003da50
nop
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140048f41
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140049650
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
cmp byte [rsp + 0x58], 0
jne 0x140048f63
mov rcx, r12
mov qword [rsp + 0x50], rcx
jmp 0x140048f68
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140048f80
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140048f80
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test r14, r14
je 0x140048f9a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140048f9a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [rbp + 0x740]
mov eax, dword [rbp + 0x42c]
cmp eax, dword [rbp + 0x738]
je 0x140048ff4
cmp eax, esi
je 0x140048ff4
mov rcx, rbx
test r13d, r13d
je 0x140048fd4
lea r8, [rbp + 0x428]
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14004913a
jmp 0x140048ff4
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140048ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140049269
cmp byte [rbp + 0x3f0], 0
jne 0x140049018
lea rax, [rbp + 0x3f0]
mov qword [rbp + 0x420], rax
lea rcx, [rbp + 0x420]
call fcn.140049800
nop
mov r8, qword [rbp + 0x6b0]
cmp r8, 7
jbe 0x140049038
mov rdx, qword [rbp + 0x698]
lea rcx, [rbp + 0x690]
call fcn.14003df00
mov qword [rbp + 0x6a8], r12
mov qword [rbp + 0x6b0], 7
mov word [rbp + 0x698], r12w
lea rcx, [rbp + 0x400]
call fcn.14002adf0
nop
lea eax, [r12 + 0x65]
cmp eax, 0x63
jbe 0x1400490ae
cmp dword [rbp + 0x42c], esi
je 0x140049097
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x428]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400490e6
add r12d, 0x64
jmp 0x140049060
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 0x1400490c3
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.14019acb0
add rsp, 0x7d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, str.Unable_to_query_status_of_the_service__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r9, [0x1402bff18]
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140031570
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x400]
call fcn.14019cd80
nop
lea rax, str.Unable_to_send_control_code__to_the_service__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x33
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r9, [rbp + 0x420]
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x448]
call fcn.1400496f0
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x448]
call fcn.14019cd80
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.14002d030
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x400]
call fcn.14019cd80
nop
lea rax, str.Unable_to_open_the_service__
mov qword [rbp + 0x3f0], rax
mov qword [rbp + 0x3f8], 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rbp + 0x3f0]
movdqa xmmword [rsp + 0x30], xmm0
mov r9, rsi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140031570
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x400]
call fcn.14019cd80
int3
lea rax, str.Unable_to_query_status_of_the_service__
mov qword [rbp + 0x3f0], rax
mov qword [rbp + 0x3f8], 0x2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rbp + 0x3f0]
movdqa xmmword [rsp + 0x30], xmm0
mov r9, rsi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140031570
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x400]
call fcn.14019cd80
nop
lea rax, str.Unable_to_start_the_service__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x21
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r9, [0x1402bff18]
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x448]
call fcn.140031570
lea rdx, [0x1402b9f88]
lea rcx, [rbp + 0x448]
call fcn.14019cd80
int3