Function at 0x140018940
Capabilities:
Delete service
Stop service

Disassembly:
push rbp
push rdi
sub rsp, 0x858
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbp, rcx
call fcn.140015f30
test eax, eax
jne 0x140018972
mov eax, 1
jmp 0x140018c6a
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x878], rbx
mov qword [rsp + 0x880], rsi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x140018a48
lea rcx, [0x14002c020]
xor edx, edx
call fcn.14001976c
xor ebx, ebx
lea edi, [rsi + 1]
test rax, rax
je 0x1400189ee
test ebx, ebx
jne 0x140018a2d
lea r8, [rsp + 0x40]
mov r9d, 0x400
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringA]
lea rcx, [0x14002c020]
mov edx, edi
mov ebx, eax
call fcn.14001976c
inc edi
test rax, rax
jne 0x1400189b6
test ebx, ebx
jne 0x140018a2d
lea r8, str.Could_not_open_Service_Manager
lea rcx, [rsp + 0x40]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140018a2d
cmp eax, 0xc
je 0x140018c9a
cmp eax, 0x16
je 0x140018c8f
cmp eax, 0x22
je 0x140018c8f
cmp eax, 0x50
jne 0x140018c84
lea r8, [rbp + 0x68]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x140018c5a
mov qword [rsp + 0x850], r14
lea r14, [rbp + 0x68]
mov r8d, 0x10020
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x140018b14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x14002c020]
xor edx, edx
call fcn.14001976c
xor ebx, ebx
lea edi, [rbp + 1]
test rax, rax
je 0x140018acb
test ebx, ebx
jne 0x140018b0a
lea r8, [rsp + 0x40]
mov r9d, 0x400
mov edx, 0xd80c
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringA]
lea rcx, [0x14002c020]
mov edx, edi
mov ebx, eax
call fcn.14001976c
inc edi
test rax, rax
jne 0x140018a93
test ebx, ebx
jne 0x140018b0a
lea r8, str.Could_not_open_service
lea rcx, [rsp + 0x40]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140018b0a
cmp eax, 0xc
je 0x140018cbb
cmp eax, 0x16
je 0x140018cb0
cmp eax, 0x22
je 0x140018cb0
cmp eax, 0x50
jne 0x140018ca5
lea rdx, [rsp + 0x40]
jmp 0x140018c42
mov edi, 1
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140018bb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140018bb7
cmp eax, 0x425
jne 0x140018b4c
cmp dword [rsp + 0x24], 3
je 0x140018bb7
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov ecx, 0xd80e
call fcn.140014710
test eax, eax
jne 0x140018ba4
lea r8, str.Could_not_stop_service
lea rcx, [rsp + 0x40]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140018ba4
cmp eax, 0xc
je 0x140018cdc
cmp eax, 0x16
je 0x140018cd1
cmp eax, 0x22
je 0x140018cd1
cmp eax, 0x50
jne 0x140018cc6
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x140018bdc
mov eax, edi
jmp 0x140018c52
lea rdx, [rsp + 0x440]
mov r8d, 0x400
mov ecx, 0xd80d
call fcn.140014710
test eax, eax
jne 0x140018c3a
lea r8, str.Could_not_delete_service
lea rcx, [rsp + 0x440]
mov edx, 0x400
call qword [sym.imp.MSVCR120.dll_strcpy_s]
test eax, eax
je 0x140018c3a
cmp eax, 0xc
je 0x140018cfd
cmp eax, 0x16
je 0x140018cf2
cmp eax, 0x22
je 0x140018cf2
cmp eax, 0x50
jne 0x140018ce7
lea rdx, [rsp + 0x440]
xor r9d, r9d
mov r8, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov r14, qword [rsp + 0x850]
mov rbx, qword [rsp + 0x878]
mov rsi, qword [rsp + 0x880]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140019e70
add rsp, 0x858
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3