Function at 0x1800c7670
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x2a0
mov rax, qword [0x18020b020]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp byte [0x1802121a8], 0
mov r15, r8
mov rsi, rdx
mov rbx, rcx
jne 0x1800c7759
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800c79ea
mov r8d, 5
lea rdx, str.CryptSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1800c76ee
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800c79ea
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 0x1800c771f
xor r14b, r14b
jmp 0x1800c772f
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 0x1800c79ea
mov byte [0x1802121a8], 1
mov rcx, rbx
call fcn.1800c72b0
cmp qword [rbx], 0
je 0x1800c79e3
cmp qword [rbx + 8], 0
je 0x1800c79e3
cmp qword [rbx + 0x10], 0
je 0x1800c79e3
cmp qword [rbx + 0x18], 0
je 0x1800c79e3
cmp qword [rbx + 0x20], 0
je 0x1800c79e3
cmp qword [rbx + 0x28], 0
je 0x1800c79e3
cmp qword [rsi + 0x18], 8
jb 0x1800c77ac
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 0x1800c77f2
mov dword [rbx + 0x30], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
jmp 0x1800c79ea
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 0x1800c79c8
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800c79c8
mov ecx, eax
lea rdx, [0x18020fc10]
call fcn.18011d0dc
mov rsi, rax
test rax, rax
jne 0x1800c7845
mov rcx, rdi
mov dword [rbx + 0x30], 9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c79ea
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.18013b560
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, rdi
call qword [rbx]
test eax, eax
jne 0x1800c788e
mov dword [rbx + 0x30], 0xa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x34], eax
mov rcx, rsi
call fcn.18011ca94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c79ea
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [rbx + 8]
test eax, eax
jne 0x1800c78ca
mov dword [rbx + 0x30], 0xb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov dword [rbx + 0x34], eax
call fcn.18011ca94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c79ea
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 0x1800c7909
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 0x1800c7878
xor edx, edx
lea rcx, [rsp + 0x84]
mov r8d, 0x208
call fcn.18013b560
xor r8d, r8d
mov dword [rsp + 0x80], 0x20c
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [rbx + 0x18]
test eax, eax
jne 0x1800c796b
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 0x1800c7878
lea rax, [rsp + 0x84]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800c7980
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.18011ca94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800c79ec
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 0x1800c79ea
mov dword [rbx + 0x30], 6
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18011c650
add rsp, 0x2a0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret