Function at 0x140072020
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14023cac0]
xor rax, rsp
mov qword [rbp], rax
mov r12, rcx
mov qword [rsp + 0x60], rcx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
mov r8d, 4
lea rdx, str.PcaSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rdi, rdi
je 0x1400720d4
test rax, rax
je 0x1400720d4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov dword [rbp - 0x38], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, dword [rbp - 0x3c]
jmp 0x1400720d7
xor r8d, r8d
test r8, r8
jne 0x140072142
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, 1
lea rdx, [0x140215fe4]
lea rcx, [rbp - 0x58]
call fcn.140071cb0
nop
lea rax, [rbp - 0x58]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140072a40
nop
lea r9, [fcn.140071970]
mov edx, 0x20
mov r8d, 1
lea rcx, [rbp - 0x58]
call fcn.14019e468
jmp 0x14007253d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
xorps xmm1, xmm1
test rax, rax
jne 0x14007219f
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, 1
lea rdx, [0x140215fe4]
lea rcx, [rbp - 0x58]
call fcn.140071cb0
nop
lea rax, [rbp - 0x58]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140072a40
nop
jmp 0x140072122
xor eax, eax
movdqu xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov r9d, 0x30
lea r8, [rbp - 0x30]
mov rdx, qword [0x140240400]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140072521
nop
cmp dword [rbp - 0x10], 0x1000
jne 0x1400724f3
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], 0
mov rbx, qword [rbp - 0x18]
test rbx, rbx
jne 0x140072210
mov qword [rsp + 0x48], rbx
mov byte [rsp + rbx + 0x38], bl
jmp 0x14007223c
lea rcx, [rsp + 0x38]
cmp rbx, 0xf
ja 0x140072231
mov qword [rsp + 0x48], rbx
mov r8, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + rbx + 0x38], 0
jmp 0x14007223c
mov r9, rbx
mov rdx, rbx
call fcn.140072fe0
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r9, qword [rbp - 0x18]
mov rdx, qword [0x140240400]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400722b5
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400724f3
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400724ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400724ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor ebx, ebx
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xor ecx, ecx
mov qword [rbp - 0x68], rcx
mov edx, recv
mov qword [rbp - 0x60], rdx
mov byte [rbp - 0x78], cl
lea rdi, [rbx - 1]
nop
lea rax, [rsp + 0x38]
cmp r14, 0xf
seta r8b
cmova rax, rsi
cmp byte [rax + rdi], 0x20
jle 0x140072360
lea rax, [rsp + 0x38]
test r8b, r8b
cmovne rax, rsi
cmp byte [rax + rdi], 0x7b
jge 0x140072360
lea rax, [rsp + 0x38]
cmp r14, 0xf
cmova rax, rsi
movzx r9d, byte [rax + rdi]
cmp rcx, rdx
jae 0x140072340
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x78]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140072349
lea rcx, [rbp - 0x78]
call fcn.140072e70
inc rdi
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x38]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
jmp 0x1400722e0
lea rax, [rbp - 0x78]
cmp rdx, 0xf
seta r9b
mov r8, qword [rbp - 0x78]
cmova rax, r8
cmp byte [rcx + rax - 4], 0x2e
je 0x1400723b1
test r9b, r9b
je 0x140072427
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x1400723ac
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072575
mov rcx, r8
jmp 0x140072418
mov rax, qword [rsp + 0x78]
cmp rax, qword [rbp - 0x80]
je 0x1400723d0
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140072b80
add qword [rsp + 0x78], 0x20
jmp 0x1400723e2
lea r8, [rbp - 0x78]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140073540
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14007241d
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072575
call fcn.14019e434
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x38]
inc rbx
lea r15, [rsp + 0x38]
cmp r14, 0xf
cmova r15, rsi
mov rax, qword [rsp + 0x48]
cmp rax, 2
jb 0x1400724ab
add rax, 0xfffffffffffffffe
cmp rbx, rax
ja 0x1400724ab
lea rdi, [rax + r15]
lea rcx, [r15 + rbx]
lea r8, [rdi + 1]
sub r8, rcx
mov edx, 0x3a
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400724ab
nop dword [rax]
cmp byte [rbx], 0x3a
jne 0x14007247f
cmp byte [rbx + 1], 0x5c
jne 0x14007247f
xor eax, eax
jmp 0x140072484
sbb eax, eax
or eax, 1
test eax, eax
je 0x14007256d
inc rbx
lea r8, [rdi + 1]
sub r8, rbx
mov edx, 0x3a
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140072470
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
jne 0x1400722c1
cmp r14, 0xf
jbe 0x1400724f3
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400724eb
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400722ae
mov rcx, rsi
call fcn.14019e434
mov rdx, qword [0x140240400]
add rdx, qword [rbp - 0x18]
mov qword [0x140240400], rdx
mov r9d, 0x30
lea r8, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x1400721d0
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rdx
mov rax, r12
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14019e3d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rbx, r15
jmp 0x1400724b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3