Function at 0x1800c94e0
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 0x1800c95c9
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800c985a
mov r8d, 5
lea rdx, str.CryptSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1800c955e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800c985a
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 0x1800c958f
xor r14b, r14b
jmp 0x1800c959f
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 0x1800c985a
mov byte [0x1802142d8], 1
mov rcx, rbx
call fcn.1800c9120
cmp qword [rbx], 0
je 0x1800c9853
cmp qword [rbx + 8], 0
je 0x1800c9853
cmp qword [rbx + 0x10], 0
je 0x1800c9853
cmp qword [rbx + 0x18], 0
je 0x1800c9853
cmp qword [rbx + 0x20], 0
je 0x1800c9853
cmp qword [rbx + 0x28], 0
je 0x1800c9853
cmp qword [rsi + 0x18], 8
jb 0x1800c961c
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 0x1800c9662
mov dword [rbx + 0x30], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
jmp 0x1800c985a
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 0x1800c9838
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800c9838
mov ecx, eax
lea rdx, [0x180211d40]
call fcn.18011ef6c
mov rsi, rax
test rax, rax
jne 0x1800c96b5
mov rcx, rdi
mov dword [rbx + 0x30], 9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c985a
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.18013d3d0
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rdi
call qword [rbx]
test eax, eax
jne 0x1800c96fe
mov dword [rbx + 0x30], 0xa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
mov rcx, rsi
call fcn.18011e904
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c985a
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [rbx + 8]
test eax, eax
jne 0x1800c973a
mov dword [rbx + 0x30], 0xb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov dword [rbx + 0x34], eax
call fcn.18011e904
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c985a
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 0x1800c9779
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 0x1800c96e8
xor edx, edx
lea rcx, [rsp + 0x84]
mov r8d, 0x208
call fcn.18013d3d0
xor r8d, r8d
mov dword [rsp + 0x80], 0x20c
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [rbx + 0x18]
test eax, eax
jne 0x1800c97db
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 0x1800c96e8
lea rax, [rsp + 0x84]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800c97f0
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.18011e904
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800c985c
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 0x1800c985a
mov dword [rbx + 0x30], 6
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x2a0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret