Function at 0x1800c94f0
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x2a0
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp byte [0x1802142d8], 0
mov r15, r8
mov rsi, rdx
mov rbx, rcx
jne 0x1800c95d9
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800c986a
mov r8d, 5
lea rdx, str.CryptSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1800c956e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800c986a
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 0x1800c959f
xor r14b, r14b
jmp 0x1800c95af
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 0x1800c986a
mov byte [0x1802142d8], 1
mov rcx, rbx
call fcn.1800c9130
cmp qword [rbx], 0
je 0x1800c9863
cmp qword [rbx + 8], 0
je 0x1800c9863
cmp qword [rbx + 0x10], 0
je 0x1800c9863
cmp qword [rbx + 0x18], 0
je 0x1800c9863
cmp qword [rbx + 0x20], 0
je 0x1800c9863
cmp qword [rbx + 0x28], 0
je 0x1800c9863
cmp qword [rsi + 0x18], 8
jb 0x1800c962c
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 0x1800c9672
mov dword [rbx + 0x30], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
jmp 0x1800c986a
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 0x1800c9848
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800c9848
mov ecx, eax
lea rdx, [0x180211d40]
call fcn.18011ef7c
mov rsi, rax
test rax, rax
jne 0x1800c96c5
mov rcx, rdi
mov dword [rbx + 0x30], 9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c986a
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.18013d3e0
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rdi
call qword [rbx]
test eax, eax
jne 0x1800c970e
mov dword [rbx + 0x30], 0xa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
mov rcx, rsi
call fcn.18011e914
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c986a
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [rbx + 8]
test eax, eax
jne 0x1800c974a
mov dword [rbx + 0x30], 0xb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov dword [rbx + 0x34], eax
call fcn.18011e914
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c986a
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 0x1800c9789
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 0x1800c96f8
xor edx, edx
lea rcx, [rsp + 0x84]
mov r8d, 0x208
call fcn.18013d3e0
xor r8d, r8d
mov dword [rsp + 0x80], 0x20c
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [rbx + 0x18]
test eax, eax
jne 0x1800c97eb
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 0x1800c96f8
lea rax, [rsp + 0x84]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800c9800
lea rdx, [rsp + 0x84]
mov rcx, r15
call fcn.180003960
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.18011e914
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800c986c
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 0x1800c986a
mov dword [rbx + 0x30], 6
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18011e4d0
add rsp, 0x2a0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret