Function at 0x140042b70
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140042c20
mov r8d, 4
lea rdx, [0x1400a3200]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140042be0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140042c20
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rbp - 0x19]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x140042c20
cmp dword [rbp - 0x15], 4
je 0x140042f3a
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1400a31d8]
lea rcx, [rbp - 0x19]
call fcn.14004df80
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
mov rax, qword [rbp - 9]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x19]
cmova rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x79]
call fcn.14004d370
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov r8d, ntohl
lea rdx, [0x1400a3200]
lea rcx, [rbp - 0x39]
call fcn.14004df80
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rdx, qword [rbp - 0x39]
mov rax, qword [rbp - 0x29]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x39]
cmova rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14004d370
nop
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rcx, qword [rbp - 0x59]
call fcn.140042920
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rcx, qword [rbp - 0x79]
lea rdx, [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
xor r14d, r14d
test eax, eax
je 0x140042de3
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
mov rdi, qword [rbp - 0x69]
lea rsi, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rsi, qword [rbp - 0x79]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x140042f63
cmp rdi, 0xf
ja 0x140042d46
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x17], xmm0
jmp 0x140042dda
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x140042d7e
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140052ef0
mov rcx, rax
test rax, rax
je 0x140042db3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140042dbf
mov rbx, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140042d9b
mov rax, r14
jmp 0x140042dbf
cmp rcx, 0x1000
jb 0x140042dba
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140042f69
jmp 0x140042d60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052ef0
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x17]
call fcn.1400426f0
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rcx, qword [rbp - 0x79]
call fcn.1400429b0
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x140042e43
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042e3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042e3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052f40
movdqa xmm0, xmmword [0x1400a3f60]
movdqu xmmword [rbp - 0x49], xmm0
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x140042e97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042e92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042e92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052f40
movdqa xmm0, xmmword [0x1400a3f50]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140042ee7
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042ee2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042ee2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052f40
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x79], 0
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140042f3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042f35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042f35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052f40
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140052db0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000bc30
nop
call fcn.14000bb90
int3