Function at 0x140004930
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1400df940]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rbx, rcx
mov qword [rbp - 0x68], rcx
mov r8, qword [rcx + 0x10]
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000497a
mov rdi, qword [rcx]
cmp r8, 1
jb 0x1400049ba
lea rsi, [r8 + rdi]
mov edx, 0x2e
mov rcx, rdi
call fcn.1400adf30
test rax, rax
je 0x1400049ba
cmp byte [rax], 0x2e
je 0x140004b1b
inc rax
mov r8, rsi
sub r8, rax
mov edx, 0x2e
mov rcx, rax
call fcn.1400adf30
test rax, rax
jne 0x140004996
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14000cd00
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004820
cmp qword [rax + 0x18], 0xf
jbe 0x1400049ee
mov rax, qword [rax]
mov r8d, 4
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140004a40
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d4f
call fcn.14007d814
movdqa xmm0, xmmword [0x1400d0ab0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm1
mov dword [rbp - 0x38], eax
xor r15d, r15d
mov dword [rbp - 0x60], r15d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [rbp - 0x3c]
call fcn.14000c570
mov edi, dword [rbp - 0x3c]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004adf
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004ada
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004d49
mov rcx, r8
call fcn.14007d814
mov eax, edi
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r15
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14007d7b0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x1400049ba
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
xor r15d, r15d
cmp rax, 0xffffffffffffffff
je 0x140004caf
mov dword [rbp - 0x30], 0x130
nop dword [rax]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14000cd00
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140004820
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rbp - 4]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004b90
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.140010d50
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004820
mov r14, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140004bc5
mov rax, qword [rax]
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140004bd3
mov rdi, qword [rdi]
mov r8, rsi
cmp r14, rsi
cmovb r8, r14
mov rdx, rax
mov rcx, rdi
call fcn.1400ade50
mov edi, eax
test eax, eax
jne 0x140004c01
cmp rsi, r14
jae 0x140004bfa
mov edi, 0xffffffff
jmp 0x140004c01
mov edi, r15d
seta dil
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140004c3e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d55
call fcn.14007d814
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140004c8c
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d5b
call fcn.14007d814
test edi, edi
je 0x140004cee
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140004b50
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004ae1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004ce4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004d3d
mov rcx, r8
call fcn.14007d814
jmp 0x140004ae1
mov edx, dword [rbp - 0x28]
call fcn.14000c570
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rbp - 0x28]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004adf
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004ada
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004d43
jmp 0x140004ad7
call fcn.140083ae4
int3
call fcn.140083ae4
int3
call fcn.140083ae4
nop
call fcn.140083ae4
nop
call fcn.140083ae4
nop
call fcn.140083ae4
int3