Function at 0x1800c5b60
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x2a0
mov rax, qword [0x180201020]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp byte [0x180208138], 0
mov r15, r8
mov rsi, rdx
mov rbx, rcx
jne 0x1800c5c49
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800c5eda
mov r8d, 5
lea rdx, str.CryptSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1800c5bde
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800c5eda
lea rax, [rsp + 0x50]
mov qword [rsp + 0x2e8], r14
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1800c5c0f
xor r14b, r14b
jmp 0x1800c5c1f
mov eax, dword [rsp + 0x5c]
add eax, 0xfffffffe
test eax, 0xfffffffd
sete r14b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14b, r14b
mov r14, qword [rsp + 0x2e8]
je 0x1800c5eda
mov byte [0x180208138], 1
mov rcx, rbx
call fcn.1800c57a0
cmp qword [rbx], 0
je 0x1800c5ed3
cmp qword [rbx + 8], 0
je 0x1800c5ed3
cmp qword [rbx + 0x10], 0
je 0x1800c5ed3
cmp qword [rbx + 0x18], 0
je 0x1800c5ed3
cmp qword [rbx + 0x20], 0
je 0x1800c5ed3
cmp qword [rbx + 0x28], 0
je 0x1800c5ed3
cmp qword [rsi + 0x18], 8
jb 0x1800c5c9c
mov rsi, qword [rsi]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800c5ce2
mov dword [rbx + 0x30], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
jmp 0x1800c5eda
xor r9d, r9d
mov dword [rsp + 0x40], ebp
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [rbx]
test eax, eax
je 0x1800c5eb8
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800c5eb8
mov ecx, eax
lea rdx, [0x180205ba0]
call fcn.18011720c
mov rsi, rax
test rax, rax
jne 0x1800c5d35
mov rcx, rdi
mov dword [rbx + 0x30], 9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c5eda
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.180135690
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rdi
call qword [rbx]
test eax, eax
jne 0x1800c5d7e
mov dword [rbx + 0x30], 0xa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
mov rcx, rsi
call fcn.180116bc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c5eda
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [rbx + 8]
test eax, eax
jne 0x1800c5dba
mov dword [rbx + 0x30], 0xb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov dword [rbx + 0x34], eax
call fcn.180116bc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c5eda
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [rbx + 0x10]
mov rbp, rax
test rax, rax
jne 0x1800c5df9
mov dword [rbx + 0x30], 0xc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov dword [rbx + 0x34], eax
call qword [rbx + 0x20]
jmp 0x1800c5d68
xor edx, edx
lea rcx, [rsp + 0x84]
mov r8d, 0x208
call fcn.180135690
xor r8d, r8d
mov dword [rsp + 0x80], 0x20c
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [rbx + 0x18]
test eax, eax
jne 0x1800c5e5b
mov dword [rbx + 0x30], 0xd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rbp
mov dword [rbx + 0x34], eax
call qword [rbx + 0x28]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [rbx + 0x20]
jmp 0x1800c5d68
lea rax, [rsp + 0x84]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800c5e70
lea rdx, [rsp + 0x84]
mov rcx, r15
call fcn.180003950
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rbp
call qword [rbx + 0x28]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [rbx + 0x20]
mov rcx, rsi
call fcn.180116bc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800c5edc
mov dword [rbx + 0x30], 8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rbx + 0x34], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c5eda
mov dword [rbx + 0x30], 6
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180116780
add rsp, 0x2a0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret