Function at 0x140025780
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.1400296a0
sub rsp, rax
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
call fcn.140022810
test eax, eax
jne 0x1400257bb
mov eax, 1
jmp 0x140025a66
xor edx, edx
mov qword [rsp + 0x1068], rbp
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140025874
xor edx, edx
lea rcx, [0x140074e00]
call fcn.14002a084
xor ebx, ebx
lea edi, [rbp + 1]
test rax, rax
je 0x14002582f
test ebx, ebx
jne 0x14002586d
mov r9d, 0x400
lea r8, [rsp + 0x40]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
mov edx, edi
lea rcx, [0x140074e00]
mov ebx, eax
call fcn.14002a084
inc edi
test rax, rax
jne 0x1400257f7
test ebx, ebx
jne 0x14002586d
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003097c
test eax, eax
je 0x14002586d
cmp eax, 0xc
je 0x140025a9d
cmp eax, 0x16
je 0x140025a92
cmp eax, 0x22
je 0x140025a92
cmp eax, 0x50
jne 0x140025a87
xor eax, eax
jmp 0x140025a5e
lea rdx, [rbx + 0x68]
mov qword [rsp + 0x1070], rsi
mov r8d, 0x10020
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140025947
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edx, edx
lea rcx, [0x140074e00]
call fcn.14002a084
xor ebx, ebx
lea edi, [rsi + 1]
test rax, rax
je 0x140025900
nop dword [rax]
test ebx, ebx
jne 0x140025a54
mov r9d, 0x400
lea r8, [rsp + 0x40]
mov edx, 0xd80c
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
mov edx, edi
lea rcx, [0x140074e00]
mov ebx, eax
call fcn.14002a084
inc edi
test rax, rax
jne 0x1400258c0
test ebx, ebx
jne 0x140025a54
lea r8, str.Could_not_open_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003097c
test eax, eax
je 0x140025a54
cmp eax, 0xc
je 0x140025abe
cmp eax, 0x16
je 0x140025ab3
cmp eax, 0x22
je 0x140025ab3
cmp eax, 0x50
je 0x140025a54
jmp 0x140025aa8
mov edi, 1
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x1400259d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x1400259d2
cmp eax, 0x425
jne 0x14002597b
cmp dword [rsp + 0x24], 3
je 0x1400259d2
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.140021150
test eax, eax
jne 0x1400259d2
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003097c
test eax, eax
je 0x1400259d2
cmp eax, 0xc
je 0x140025adf
cmp eax, 0x16
je 0x140025ad4
cmp eax, 0x22
je 0x140025ad4
cmp eax, 0x50
jne 0x140025ac9
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test ebx, ebx
je 0x1400259f7
mov eax, edi
jmp 0x140025a56
mov r8d, 0x400
lea rdx, [rsp + 0x840]
mov ecx, 0xd80d
call fcn.140021150
test eax, eax
jne 0x140025a54
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rsp + 0x840]
call fcn.14003097c
test eax, eax
je 0x140025a54
cmp eax, 0xc
je 0x140025b00
cmp eax, 0x16
je 0x140025af5
cmp eax, 0x22
je 0x140025af5
cmp eax, 0x50
jne 0x140025aea
xor eax, eax
mov rsi, qword [rsp + 0x1070]
mov rbp, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029210
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop rdi
ret
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3