Function at 0x140004990
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa88]
sub rsp, 0xb60
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0xa40], rax
xor r15d, r15d
mov r8d, 0x104
lea rdx, [rbp + 0x830]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x620]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8, [rbp + 0x620]
mov edx, 0x104
lea rcx, [rbp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [0x140014a30]
cmp qword [0x140014a48], 7
cmova rcx, qword [0x140014a30]
xor r9d, r9d
lea r8, [rbp - 0x10]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x620]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140004acb
lea rdx, str.Cannot_remove_service:_Current_executable_is_located_in_System32.
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
lea rcx, [rsp + 0x50]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14000601b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004bff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
jne 0x140004c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp - 0x16]
nop dword [rax]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140004b00
lea r8, [rbp - 0x16]
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x50]
lea rdx, str.Failed_to_open_SC_Manager._Error_code:
lea rcx, [rsp + 0x30]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004ba7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ba2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ba2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r15w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14000601b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004bff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
jmp 0x14000601b
lea rdx, [0x140014a10]
cmp qword [0x140014a28], 7
cmova rdx, qword [0x140014a10]
mov r8d, 0x10025
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
jne 0x140004dc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
cmp eax, 0x424
jne 0x140004cb4
lea rdx, str.Service_does_not_exist.
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
lea rcx, [rsp + 0x50]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140006012
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r9, [rbp - 0x16]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140004cc0
lea r8, [rbp - 0x16]
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x50]
lea rdx, str.Failed_to_open_service._Error_code:
lea rcx, [rsp + 0x30]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004d67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r15w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140006012
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
jmp 0x140006012
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], r15d
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140005ee8
mov r8, qword [rbx + 0x10]
mov edx, 0x104
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
mov r8, rax
lea rdx, str.Service_path_retrieved:
lea rcx, [rsp + 0x30]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004eab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ea6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ea6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm6, xmmword [0x140010180]
movdqu xmmword [rsp + 0x40], xmm6
mov word [rsp + 0x30], r15w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140004f04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea rax, [rbp + 0x200]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004f30
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140006058
movabs rax, 0x7fffffffffffffff
mov ecx, 0xa
cmp rbx, 7
ja 0x140004f90
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x78], r15w
jmp 0x140005027
mov rsi, rbx
or rsi, 7
cmp rsi, r14
jbe 0x140004fa5
mov rsi, r14
lea rcx, [rax + rax]
jmp 0x140004fbe
cmp rsi, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, rax
ja 0x140006052
add rcx, rcx
je 0x140004ffb
cmp rcx, 0x1000
jb 0x140004ff3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140006052
mov rcx, rax
call fcn.14000b9e0
test rax, rax
je 0x140005ed4
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x140004ffb
call fcn.14000b9e0
mov r15, rax
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x200]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
lea rsi, [rsp + 0x78]
mov r9, qword [rsp + 0x78]
mov r8, qword [rbp - 0x70]
cmp r8, 7
cmova rsi, r9
mov rax, qword [rbp - 0x78]
lea rcx, [rax + rax]
add rsi, rcx
lea rbx, [rsp + 0x78]
cmp r8, 7
cmova rbx, r9
add rbx, rcx
lea rcx, [rsp + 0x78]
cmp r8, 7
cmova rcx, r9
mov r8d, 0x22
mov rdx, rbx
call fcn.14000b880
mov r8, rax
cmp rax, rbx
je 0x14000509e
lea rcx, [rax + 2]
cmp rcx, rbx
je 0x14000509e
movzx eax, word [rcx]
cmp ax, 0x22
je 0x140005095
mov word [r8], ax
add r8, 2
add rcx, 2
cmp rcx, rbx
jne 0x140005084
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rax, qword [rsp + 0x78]
mov r9, r8
sub r9, rax
sar r9, 1
sub rsi, r8
sar rsi, 1
mov rbx, qword [rbp - 0x78]
mov rax, rbx
sub rax, r9
cmp rax, rsi
cmovb rsi, rax
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rax, qword [rsp + 0x78]
lea rcx, [rax + r9*2]
sub rbx, rsi
mov r8, rbx
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rsi*2]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x78], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x410]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
xor r9d, r9d
lea r8, [rbp + 0x410]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp + 0x410]
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
mov r8, rax
lea rdx, str.Canonical_service_path:
lea rcx, [rsp + 0x30]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400051ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x40], xmm6
mov word [rsp + 0x30], r15w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400051ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp - 0x10]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140005214
cmp rdi, r14
ja 0x14000605e
cmp rdi, 7
ja 0x14000525b
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x30], r15w
jmp 0x14000530a
mov rax, rdi
or rax, 7
cmp rax, r14
jbe 0x1400052aa
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400052db
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140006064
mov rcx, rax
call fcn.14000b9e0
test rax, rax
je 0x1400053b4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400052e3
mov r14, rax
cmp rax, 0xa
mov eax, 0xa
cmovb r14, rax
lea rcx, [r14 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140006064
add rcx, rcx
jne 0x140005275
mov rsi, r15
jmp 0x1400052e3
call fcn.14000b9e0
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp - 0x10]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rbx], r15w
lea r8, [rsp + 0x30]
lea rdx, str.Canonical_system_path:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14000536f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000536a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000536a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400053c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000550a
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x620]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
test eax, eax
je 0x140005602
mov ecx, 0xa0
call fcn.14000b9e0
mov rcx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140010220]
movdqu xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [str.Service_is_in_System32__but_current_executable_is_not._Proceeding_with_removal.]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14000f3e0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14000f3f0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14000f400]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14000f410]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x14000f420]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x14000f430]
movups xmmword [rax + 0x60], xmm0
movaps xmm1, xmmword [0x14000f440]
movups xmmword [rax + 0x70], xmm1
movaps xmm0, xmmword [0x14000f450]
movups xmmword [rax + 0x80], xmm0
movsd xmm0, qword [0x14000f460]
movsd qword [rax + 0x90], xmm0
mov eax, dword [0x14000f468]
mov dword [rcx + 0x98], eax
movzx eax, word [0x14000f46c]
mov word [rcx + 0x9c], ax
mov word [rcx + 0x9e], r15w
lea rcx, [rsp + 0x30]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000550a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005505
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005505
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x48], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x68]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140005aca
cmp dword [rbp - 0x64], 1
je 0x140005a61
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x40
call fcn.14000b9e0
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x1400101b0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Stopping_existing_service...]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000f528]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000f538]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x14000f548]
movsd qword [rax + 0x30], xmm0
mov word [rax + 0x38], r15w
lea rcx, [rsp + 0x30]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005715
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005710
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 0xb0
call fcn.14000b9e0
mov r8, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140010230]
movdqu xmmword [rsp + 0x40], xmm0
lea rcx, str.Cannot_remove_service:_Both_service_and_current_executable_are_located_in_System32.
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rax + 0x70], xmm0
movups xmm1, xmmword [rcx + 0x80]
movups xmmword [rax + 0x80], xmm1
movups xmm0, xmmword [rcx + 0x90]
movups xmmword [rax + 0x90], xmm0
mov eax, dword [rcx + 0xa0]
mov dword [r8 + 0xa0], eax
movzx eax, word [rcx + 0xa4]
mov word [r8 + 0xa4], ax
mov word [r8 + 0xa6], r15w
lea rcx, [rsp + 0x30]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400056f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400056f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400056f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140005e9c
call fcn.14000bd2c
lea r8, [rbp - 0x68]
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000594f
cmp dword [rbp - 0x64], 1
je 0x14000588a
nop dword [rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x68]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140005779
cmp dword [rbp - 0x64], 1
jne 0x140005740
jmp 0x14000588a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp - 0x16]
nop word [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140005790
lea r8, [rbp - 0x16]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_query_service_status_during_stop._Error_code:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005839
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005834
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005834
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000588a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005885
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005885
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x40
call fcn.14000b9e0
mov rcx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x1400101c0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Service_stopped_successfully.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000f5e8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000f5f8]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x14000f608]
movsd qword [rax + 0x30], xmm0
movzx eax, word [0x14000f610]
mov word [rcx + 0x38], ax
mov word [rcx + 0x3a], r15w
lea rcx, [rsp + 0x30]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005bda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp - 0x16]
nop dword [rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140005960
lea r8, [rbp - 0x16]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_stop_service._Error_code:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005a09
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005bda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.Service_is_already_stopped.
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
lea rcx, [rsp + 0x50]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005bda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp - 0x16]
nop word [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140005ae0
lea r8, [rbp - 0x16]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_query_service_status._Error_code:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005b89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005bda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x30
call fcn.14000b9e0
mov rcx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x1400101a0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Deleting_the_service...]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000f720]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14000f730]
movsd qword [rax + 0x20], xmm0
mov eax, dword [0x14000f738]
mov dword [rcx + 0x28], eax
movzx eax, word [0x14000f73c]
mov word [rcx + 0x2c], ax
mov word [rcx + 0x2e], r15w
lea rcx, [rsp + 0x30]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005c96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140005d0c
lea rdx, str.Service_deleted_successfully.
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
lea rcx, [rsp + 0x50]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005e88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
cmp eax, 0x430
jne 0x140005d85
lea rdx, str.Service_already_marked_for_deletion.
lea rcx, [rsp + 0x50]
call fcn.140008400
nop
lea rcx, [rsp + 0x50]
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005e88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r9, [rbp - 0x16]
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140005d90
lea r8, [rbp - 0x16]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_delete_service._Error_code:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005e37
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005e88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140005ee0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005edb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005edb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movzx eax, bl
jmp 0x14000601d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp - 0x16]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140005f00
lea r8, [rbp - 0x16]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.14000a6c0
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_retrieve_service_path._Error_code:
lea rcx, [rsp + 0x50]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005fa7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005fa2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140006000
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ffb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.14000b8a0
lea r11, [rsp + 0xb60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001650
int3
call fcn.1400016f0
nop
call fcn.1400016f0
nop
call fcn.140001650
int3