Function at 0x140025740
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.140029660
sub rsp, rax
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
call fcn.1400227d0
test eax, eax
jne 0x14002577b
mov eax, 1
jmp 0x140025a26
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 0x140025834
xor edx, edx
lea rcx, [0x140074e00]
call fcn.14002a044
xor ebx, ebx
lea edi, [rbp + 1]
test rax, rax
je 0x1400257ef
test ebx, ebx
jne 0x14002582d
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.14002a044
inc edi
test rax, rax
jne 0x1400257b7
test ebx, ebx
jne 0x14002582d
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003093c
test eax, eax
je 0x14002582d
cmp eax, 0xc
je 0x140025a5d
cmp eax, 0x16
je 0x140025a52
cmp eax, 0x22
je 0x140025a52
cmp eax, 0x50
jne 0x140025a47
xor eax, eax
jmp 0x140025a1e
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 0x140025907
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.14002a044
xor ebx, ebx
lea edi, [rsi + 1]
test rax, rax
je 0x1400258c0
nop dword [rax]
test ebx, ebx
jne 0x140025a14
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.14002a044
inc edi
test rax, rax
jne 0x140025880
test ebx, ebx
jne 0x140025a14
lea r8, str.Could_not_open_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003093c
test eax, eax
je 0x140025a14
cmp eax, 0xc
je 0x140025a7e
cmp eax, 0x16
je 0x140025a73
cmp eax, 0x22
je 0x140025a73
cmp eax, 0x50
je 0x140025a14
jmp 0x140025a68
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 0x140025992
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x140025992
cmp eax, 0x425
jne 0x14002593b
cmp dword [rsp + 0x24], 3
je 0x140025992
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.140021110
test eax, eax
jne 0x140025992
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14003093c
test eax, eax
je 0x140025992
cmp eax, 0xc
je 0x140025a9f
cmp eax, 0x16
je 0x140025a94
cmp eax, 0x22
je 0x140025a94
cmp eax, 0x50
jne 0x140025a89
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 0x1400259b7
mov eax, edi
jmp 0x140025a16
mov r8d, 0x400
lea rdx, [rsp + 0x840]
mov ecx, 0xd80d
call fcn.140021110
test eax, eax
jne 0x140025a14
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rsp + 0x840]
call fcn.14003093c
test eax, eax
je 0x140025a14
cmp eax, 0xc
je 0x140025ac0
cmp eax, 0x16
je 0x140025ab5
cmp eax, 0x22
je 0x140025ab5
cmp eax, 0x50
jne 0x140025aaa
xor eax, eax
mov rsi, qword [rsp + 0x1070]
mov rbp, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400291d0
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