Function at 0x1400064a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movzx r13d, dl
xor ebp, ebp
mov r12d, ebp
mov dword [rsp + 0x40], ebp
mov rbx, qword [0x1400cc968]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], bpl
jne 0x140006760
lea rdi, [rbx + 0x20]
lea r15, [rdi + 0x20]
test r13b, r13b
je 0x140006617
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x140006522
mov esi, ebp
jmp 0x14000666e
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000652f
mov r8, qword [rdi]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor edx, edx
xor ecx, ecx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call fcn.140044c7c
mov rbp, rax
cmp qword [rdi + 0x18], 7
jbe 0x14000656a
mov rdi, qword [rdi]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
mov r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
mov rcx, rbp
call fcn.140044800
test rdi, rdi
jne 0x1400065c5
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x14000666e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rdi
test eax, eax
jne 0x1400065ff
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x14000666e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [rsp + 0x8c]
jmp 0x14000666e
cmp qword [rdi + 0x18], 7
jbe 0x140006621
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140006640
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000ce40
nop
or r12d, 1
mov dword [rsp + 0x40], r12d
lea rcx, [rsp + 0x48]
call fcn.140006260
mov esi, eax
test r12b, 1
je 0x1400066ba
and r12d, 0xfffffffe
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400066ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006759
call fcn.140044800
test esi, esi
je 0x140006701
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x140006701
mov r14, qword [r15 + 8]
mov rdi, qword [r15]
cmp rdi, r14
je 0x1400066f8
mov r8, rbp
mov rdx, rdi
mov ecx, esi
call fcn.140005e10
add rdi, 0x20
cmp rdi, r14
jne 0x1400066e2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000672d
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140006728
cmp rbx, qword [rax + 0x10]
jne 0x140006728
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140006715
mov rbx, rax
jmp 0x14000674c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14000674c
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006740
cmp byte [rbx + 0x19], 0
jne 0x140006760
xor ebp, ebp
jmp 0x1400064f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400447e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret