Function at 0x140019d70
Capabilities:
Enumerate processes
Query service status
Start service
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, r8
mov qword [rsp + 0x30], r8
mov ebx, edx
mov rdi, rcx
call fcn.140003170
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140019dd3
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001920
nop
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov r13, qword [rsp + 0x60]
test rax, rax
jne 0x140019f78
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rsi, qword [rsp + 0x70]
sub rax, rsi
cmp rax, 0x17
jb 0x14001a2f0
lea r15, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r15, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea r14, [rsi + 0x17]
mov edi, 0xf
lea rbx, [rsp + 0x38]
cmp r14, rdi
jbe 0x140019eda
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x140019e9c
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140022a80
test rax, rax
je 0x14001a2f6
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140019ed5
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140019ec4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001a2e4
jmp 0x140019e7d
test rcx, rcx
je 0x140019ed3
call fcn.140022a80
mov rbx, rax
jmp 0x140019ed5
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [str.Failed_to_open_service]
movups xmmword [rbx], xmm0
mov eax, dword [0x14005c4a0]
mov dword [rbx + 0x10], eax
movzx eax, word [0x14005c4a4]
mov word [rbx + 0x14], ax
movzx eax, byte [0x14005c4a6]
mov byte [rbx + 0x16], al
lea rcx, [rbx + 0x17]
mov r8, rsi
mov rdx, r15
call fcn.14004a380
mov byte [rbx + r14], 0
mov r8d, 1
lea rdx, [rsp + 0x38]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140019f6e
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019f69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a2f6
call fcn.140022abc
mov rcx, qword [rsp + 0x30]
jmp 0x14001a275
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14001a115
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rsi, qword [rsp + 0x70]
sub rax, rsi
cmp rax, 0x1e
jb 0x14001a2fc
lea r15, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r15, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea r14, [rsi + 0x1e]
mov edi, 0xf
lea rbx, [rsp + 0x38]
cmp r14, rdi
jbe 0x14001a06b
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14001a02d
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140022a80
test rax, rax
je 0x14001a302
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001a066
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14001a055
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001a2ea
jmp 0x14001a00e
test rcx, rcx
je 0x14001a064
call fcn.140022a80
mov rbx, rax
jmp 0x14001a066
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [str.Failed_to_read_service_status]
movups xmmword [rbx], xmm0
movsd xmm0, qword [0x14005c4b8]
movsd qword [rbx + 0x10], xmm0
mov eax, dword [0x14005c4c0]
mov dword [rbx + 0x18], eax
movzx eax, word [0x14005c4c4]
mov word [rbx + 0x1c], ax
lea rcx, [rbx + 0x1e]
mov r8, rsi
mov rdx, r15
call fcn.14004a380
mov byte [rbx + r14], 0
mov r8d, 1
lea rdx, [rsp + 0x38]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14001a102
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a0fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a302
call fcn.140022abc
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
jmp 0x14001a275
mov eax, dword [rbp - 0x7c]
cmp eax, 4
jne 0x14001a251
cmp ebx, 1
jne 0x14001a269
lea r8, [rbp - 0x80]
mov edx, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140002af0
nop
lea rdx, str..exe
lea rcx, [rsp + 0x38]
call fcn.14000f7f0
mov edi, 0xf
nop dword [rax]
xor esi, esi
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a20d
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001a1c5
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x24]
call fcn.14002dfd0
test eax, eax
je 0x14001a1c2
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001a191
jmp 0x14001a1c5
mov esi, dword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14001a20d
mov r8d, esi
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001a160
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14001a160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a160
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14001a269
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a24a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a308
call fcn.140022abc
jmp 0x14001a269
cmp eax, 1
jne 0x14001a269
cmp ebx, 4
jne 0x14001a269
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, qword [rsp + 0x78]
cmp rax, 0xf
jbe 0x14001a2b4
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14001a2ac
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a2de
mov rcx, r13
call fcn.140022abc
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140022a60
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002994c
nop
call fcn.140001620
nop
call fcn.140001620
int3
call fcn.1400016c0
int3
call fcn.14002994c
int3
call fcn.1400016c0
int3
call fcn.14002994c
int3
call fcn.14002994c
int3