Function at 0x140067610
Capabilities:
Query service status

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x79], esi
cmp qword [rcx + 0x10], rsi
jne 0x14006768c
lea rax, [rbp - 0x71]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x59], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x71], sil
lea r8d, [rsi + 0x12]
lea rdx, str.empty_service_name
lea rcx, [rbp - 0x71]
call fcn.14000bc80
nop
lea rcx, [rbp - 0x71]
call fcn.14004c6e0
xor al, al
jmp 0x140067932
mov qword [rbp - 0x11], rsi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x11], rax
test rax, rax
jne 0x140067761
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14004c3c0
nop
mov r9d, 0x2f
lea r8, str.Could_not_open_Service_Control_Manager__Error:
xor edx, edx
mov rcx, rax
call fcn.14003fa50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x61], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov ebx, 1
mov dword [rbp - 0x79], ebx
lea r8, [0x1403c461c]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 9]
call fcn.1400440a0
nop
and ebx, 0xfffffffe
mov dword [rbp - 0x79], ebx
lea rcx, [rbp - 0x71]
call fcn.14000c340
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
lea rax, [rbp - 0x49]
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.1400256d0
nop
mov rcx, rax
call fcn.14004c770
nop
lea rcx, [rbp - 9]
call fcn.14000c340
xor bl, bl
jmp 0x140067926
mov qword [rbp - 0x19], rsi
cmp qword [rbx + 0x18], 8
jb 0x14006776f
mov rbx, qword [rbx]
mov r8d, 5
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x140067840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14004c3c0
nop
mov r9d, 0x1f
lea r8, str.Could_not_open_service__Error:
xor edx, edx
mov rcx, rax
call fcn.14003fa50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x61], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov ebx, 4
mov dword [rbp - 0x79], ebx
lea r8, [0x1403c461c]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 9]
call fcn.1400440a0
nop
and ebx, 0xfffffffb
mov dword [rbp - 0x79], ebx
lea rcx, [rbp - 0x71]
call fcn.14000c340
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.1400256d0
nop
mov rcx, rax
call fcn.14004c770
nop
lea rcx, [rbp - 9]
call fcn.14000c340
jmp 0x14006791a
xor ecx, ecx
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rcx
mov qword [rbp + 0x27], rcx
mov qword [rbp + 0x2f], rcx
mov dword [rbp + 0x37], ecx
mov dword [rbp - 0x21], esi
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, 0x24
lea r8, [rbp + 0x17]
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400678d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14004c3c0
nop
mov r8, rax
lea rdx, str.QueryServiceStatusEx_Error:
lea rcx, [rbp - 9]
call fcn.140055c50
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.1400256d0
nop
mov rcx, rax
call fcn.14004c770
nop
lea rcx, [rbp - 9]
call fcn.14000c340
jmp 0x14006791a
cmp dword [rbp + 0x1b], 1
je 0x1400678e2
mov eax, dword [rbp + 0x33]
mov dword [rdi], eax
mov bl, 1
jmp 0x14006791c
lea rax, [rbp - 0x71]
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x59], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x71], 0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.service_not_running
lea rcx, [rbp - 0x71]
call fcn.14000bc80
nop
lea rcx, [rbp - 0x71]
call fcn.14004c6e0
xor bl, bl
lea rcx, [rbp - 0x19]
call fcn.1400baff0
nop
lea rcx, [rbp - 0x11]
call fcn.1400baff0
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140282c10
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret