Function at 0x1400115a0
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 [0x140025040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, r8
mov qword [rsp + 0x30], r8
mov ebx, edx
mov rdi, rcx
xor esi, esi
call fcn.140002890
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140011600
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005ef0
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 0x1400117a7
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rsi, qword [rsp + 0x70]
sub rax, rsi
cmp rax, 0x17
jb 0x140011b81
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 0x140011706
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x1400116c8
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140017148
test rax, rax
je 0x140011791
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140011701
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x1400116f0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140011b75
jmp 0x1400116a9
test rcx, rcx
je 0x1400116ff
call fcn.140017148
mov rbx, rax
jmp 0x140011701
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 [0x14001d100]
mov dword [rbx + 0x10], eax
movzx eax, word [0x14001d104]
mov word [rbx + 0x14], ax
movzx eax, byte [0x14001d106]
mov byte [rbx + 0x16], al
lea rcx, [rbx + 0x17]
mov r8, rsi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r14], 0
mov r8d, 1
lea rdx, [rsp + 0x38]
call fcn.14000ba70
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14001179d
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011798
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011798
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov rcx, qword [rsp + 0x30]
jmp 0x140011aff
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 0x140011947
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rsi, qword [rsp + 0x70]
sub rax, rsi
cmp rax, 0x1e
jb 0x140011b6f
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 0x14001189a
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14001185c
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140017148
test rax, rax
je 0x140011928
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140011895
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140011884
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140011b7b
jmp 0x14001183d
test rcx, rcx
je 0x140011893
call fcn.140017148
mov rbx, rax
jmp 0x140011895
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 [0x14001d118]
movsd qword [rbx + 0x10], xmm0
mov eax, dword [0x14001d120]
mov dword [rbx + 0x18], eax
movzx eax, word [0x14001d124]
mov word [rbx + 0x1c], ax
lea rcx, [rbx + 0x1e]
mov r8, rsi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r14], 0
mov r8d, 1
lea rdx, [rsp + 0x38]
call fcn.14000ba70
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140011934
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001192f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001192f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
jmp 0x140011aff
mov eax, dword [rbp - 0x7c]
cmp eax, 4
jne 0x140011adb
cmp ebx, 1
jne 0x140011af3
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.140002480
nop
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1400119c0
lea rax, [rcx + 4]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 7
cmova rax, qword [rsp + 0x38]
movabs rdx, 0x6500780065002e
mov qword [rax + rcx*2], rdx
xor r14d, r14d
mov word [rax + rcx*2 + 8], r14w
jmp 0x1400119db
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140011c50
xor r14d, r14d
mov edi, 0xf
mov esi, r14d
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011a8f
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140011a47
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140011a44
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140011a12
jmp 0x140011a47
mov esi, dword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140011a8f
mov r8d, esi
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400119e0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400119e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400119e0
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
mov r14, qword [rsp + 0x30]
jbe 0x140011af3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011ad4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011ad4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
jmp 0x140011af3
cmp eax, 1
jne 0x140011af3
cmp ebx, 4
jne 0x140011af3
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 0x140011b45
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140011b3d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011b3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140017140
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140017120
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.140001380
nop
call fcn.1400012e0
int3
call fcn.1400012e0
int3
call fcn.140001380
int3