Function at 0x140054bf0
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, rdx
movzx ebx, cl
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r15b, r15b
mov r8d, 0xa0000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140054d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14004c2f0
nop
lea r9d, [r12 + 6]
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x20], 1
lea r8d, [r12 + 0x16]
lea rdx, str._calling_OpenSCManager
lea rcx, [rbp - 0x59]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x11], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rbp - 1], xmm7
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov ebx, 3
mov dword [rsp + 0x20], ebx
lea rax, [rbp - 0x11]
cmp rdi, rax
je 0x140054d23
mov rcx, rdi
call fcn.14000bc00
movups xmmword [rdi], xmm6
movups xmmword [rdi + 0x10], xmm7
movdqa xmm0, xmmword [0x1403e1a40]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], sil
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x11]
call fcn.14000bc00
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x59]
call fcn.14000bc00
nop
lea rcx, [rsp + 0x28]
call fcn.14000bc00
lea rax, [rsp + 0x28]
mov qword [rbp - 0x61], rax
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
jmp 0x140055075
lea rax, str.MB3Service
lea rdx, str.MBAMService
test bl, bl
cmovne rdx, rax
mov r8d, 0x80000000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140054f7a
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140054eb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.14004c2f0
nop
mov r9d, 6
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x71], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x71], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
lea rdx, str._calling_QueryServiceStatus
lea rcx, [rsp + 0x28]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, ntohl
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.1400259a0
and ebx, 0xfffffff7
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x59]
call fcn.14000bc00
and ebx, 0xfffffffb
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x28]
call fcn.14000bc00
nop
lea rcx, [rbp - 0x39]
call fcn.14000bc00
lea rax, [rbp - 0x39]
mov qword [rbp - 0x61], rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
jmp 0x14005506f
mov edx, dword [rbp - 0xd]
cmp edx, 4
jne 0x140054ec9
mov r15b, 1
jmp 0x140054f5f
lea rcx, [rbp - 0x39]
call fcn.14004c2f0
nop
mov r9d, sendto
lea r8, str.Service_state_is:
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x71], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x71], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400259a0
and ebx, 0xffffffef
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x28]
call fcn.14000bc00
nop
lea rcx, [rbp - 0x39]
call fcn.14000bc00
lea rax, [rbp - 0x39]
mov qword [rbp - 0x61], rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, r15b
jmp 0x140055077
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.14004c2f0
nop
mov r9d, 6
lea r8, str.Error
xor edx, edx
mov rcx, rax
call fcn.14003f590
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x20], 0x20
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str._calling_OpenServiceW
lea rcx, [rbp - 0x59]
call fcn.14000bde0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x71], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x71], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov ebx, 0x60
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400259a0
and ebx, 0xffffffbf
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x28]
call fcn.14000bc00
and ebx, 0xffffffdf
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x59]
call fcn.14000bc00
nop
lea rcx, [rbp - 0x39]
call fcn.14000bc00
lea rax, [rbp - 0x39]
mov qword [rbp - 0x61], rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000b920
nop
mov rcx, rax
call fcn.14004c6e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret