Function at 0x1400655b0
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 [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov r12, qword [rbp + 0x720]
mov ebx, dword [rbp + 0x728]
mov eax, dword [rbp + 0x730]
mov dword [rsp + 0x48], eax
mov dword [rbp + 0x420], eax
xor esi, esi
mov dword [rsp + 0x40], esi
lea r8d, [rsi + 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 0x140065f04
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140065647
mov rdx, qword [r12]
or ebx, 4
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0x470], rax
test rax, rax
je 0x140065f33
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 0x140065f89
mov r13, r12
cmp qword [r12 + 0x18], 7
jbe 0x1400656a9
mov r13, qword [r12]
mov r15, qword [r12 + 0x10]
xor r8d, r8d
lea rdx, [r15 + 0x22]
lea rcx, [rbp + 0x400]
call fcn.140035fc0
lea r14, [rbp + 0x400]
cmp qword [rbp + 0x418], 7
cmova r14, qword [rbp + 0x400]
mov r8d, 0x44
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, r14
call fcn.14019ace0
lea rcx, [r14 + 0x44]
lea r8, [r15*2]
add r8, r13
sub r8, r13
mov rdx, r13
call fcn.14019ace0
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
movaps xmm0, xmmword [rbp + 0x3e0]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x480]
call fcn.140058350
nop
mov byte [rbp + 0x3f0], 0
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.1400585e0
mov r14d, dword [rbp + 0x6b8]
mov dword [rbp + 0x3c8], r14d
mov eax, dword [rbp + 0x6bc]
mov dword [rbp + 0x3cc], eax
mov byte [rbp + 0x3d0], 1
and r14d, 0x300
or r14d, 1
mov rax, qword [rbp + 0x190]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x198]
lea rcx, [rsp + 0x58]
call fcn.1400585e0
mov r8d, dword [rbp + 0x3cc]
mov dword [rbp + 0x18c], r8d
mov dword [rbp + 0x188], r14d
mov qword [rbp + 0x3e0], rsi
lea rdx, [rbp + 0x168]
cmp qword [rbp + 0x180], 7
cmova rdx, qword [rbp + 0x168]
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
test eax, eax
mov rcx, rsi
jne 0x14006583e
mov rcx, qword [rbp + 0x3e0]
mov qword [rbp + 0x3e0], rsi
test rcx, rcx
je 0x14006585c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006585c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0x160]
call fcn.140058700
nop
lea rcx, [rbp + 0x190]
call fcn.1400582c0
test r14d, r14d
jne 0x140065886
mov byte [rbp + 0x3f0], 1
jmp 0x140065d26
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.1400585e0
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.1400585e0
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.1400a1780
mov r15, qword [rax]
mov qword [rax], rsi
mov qword [rbp + 0x448], r15
mov byte [rbp + 0x450], 1
mov dword [rsp + 0x40], 0x47
mov rcx, qword [rbp + 0x3e0]
test rcx, rcx
je 0x14006594f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006594f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x3e0], rsi
lea rcx, [rbp + 0x3a0]
call fcn.140058700
nop
lea rcx, [rbp + 0x160]
call fcn.140058700
nop
lea rax, str.ErrorControl
mov qword [rbp + 0x3e0], rax
mov qword [rbp + 0x3e8], recvfrom
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x50]
call fcn.14019b380
nop
mov qword [rsp + 0x50], r15
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.14005b8d0
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 r14, 0xffffffffffffffff
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400659f0
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
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.1400a1e00
nop
lea rcx, [rbp + 0x190]
call fcn.1400582c0
mov dword [rsp + 0x40], 0x47
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140065a72
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.14005b5e0
mov qword [rbp], rsi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], si
cmp byte [rsp + 0x58], 0
jne 0x140065a93
mov rcx, rsi
mov qword [rsp + 0x50], rcx
jmp 0x140065a98
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140065aaf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140065aaf
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.14019b380
nop
mov qword [rsp + 0x50], r15
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.14005b8d0
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, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140065b20
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
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.1400a1e00
nop
lea rcx, [rbp + 0x190]
call fcn.1400582c0
mov dword [rsp + 0x40], 0x47
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140065ba2
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.14005b5e0
mov qword [rbp], rsi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], si
cmp byte [rsp + 0x58], 0
jne 0x140065bc3
mov rcx, rsi
mov qword [rsp + 0x50], rcx
jmp 0x140065bc8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140065bdf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140065bdf
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.14019b380
nop
mov qword [rsp + 0x50], r15
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.14005b8d0
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
nop word [rax + rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x140065c50
mov qword [rsp + 0x38], r14
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
lea r8, [rbp + 0x3e0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.1400a1e00
nop
lea rcx, [rbp + 0x190]
call fcn.1400582c0
nop
mov r8, qword [rbp + 8]
cmp r8, 7
jbe 0x140065cce
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.14005b5e0
mov qword [rbp], rsi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], si
cmp byte [rsp + 0x58], 0
jne 0x140065cef
mov rcx, rsi
mov qword [rsp + 0x50], rcx
jmp 0x140065cf4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140065d0c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140065d0c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test r15, r15
je 0x140065d26
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140065d26
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, dword [rbp + 0x740]
mov eax, dword [rbp + 0x42c]
cmp eax, dword [rbp + 0x738]
je 0x140065d82
cmp eax, r15d
je 0x140065d82
mov edx, dword [rsp + 0x48]
mov rcx, rbx
test edx, edx
je 0x140065d62
lea r8, [rbp + 0x428]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140065eab
jmp 0x140065d82
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140065d82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140065fdf
cmp byte [rbp + 0x3f0], 0
jne 0x140065da6
lea rax, [rbp + 0x3f0]
mov qword [rbp + 0x420], rax
lea rcx, [rbp + 0x420]
call fcn.140066320
nop
lea rcx, [rbp + 0x690]
call fcn.140058700
nop
lea rcx, [rbp + 0x400]
call fcn.140025f00
mov r14d, dword [rbp + 0x748]
test r14d, r14d
je 0x140065e23
nop dword [rax + rax]
cmp esi, 0xffffffff
je 0x140065ddf
cmp esi, r14d
jae 0x140065e0c
cmp esi, 0xffffff9b
jae 0x140065e0c
cmp dword [rbp + 0x42c], r15d
je 0x140065e23
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 0x140065e5b
add esi, 0x64
jmp 0x140065dd0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140065e38
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.140144310
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
mov r9, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x400]
call fcn.14015a550
nop
lea rax, str.Unable_to_send_control_code__to_the_service__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], gethostname
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x420]
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x448]
call fcn.140066210
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x448]
call fcn.14015a550
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.140065560
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x400]
call fcn.14015a550
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, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x400]
call fcn.14015a550
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, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x400]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x400]
call fcn.14015a550
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
mov r9, r12
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0x448]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rbp + 0x448]
call fcn.14015a550
int3