Function at 0x140024250
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.1400282e0
sub rsp, rax
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
call fcn.140021700
test eax, eax
jne 0x14002428b
mov eax, 1
jmp 0x140024536
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 0x140024344
xor edx, edx
lea rcx, [0x140071e00]
call fcn.140028d04
xor ebx, ebx
lea edi, [rbp + 1]
test rax, rax
je 0x1400242ff
test ebx, ebx
jne 0x14002433d
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, [0x140071e00]
mov ebx, eax
call fcn.140028d04
inc edi
test rax, rax
jne 0x1400242c7
test ebx, ebx
jne 0x14002433d
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f150
test eax, eax
je 0x14002433d
cmp eax, 0xc
je 0x14002456d
cmp eax, 0x16
je 0x140024562
cmp eax, 0x22
je 0x140024562
cmp eax, 0x50
jne 0x140024557
xor eax, eax
jmp 0x14002452e
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 0x140024417
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edx, edx
lea rcx, [0x140071e00]
call fcn.140028d04
xor ebx, ebx
lea edi, [rsi + 1]
test rax, rax
je 0x1400243d0
nop dword [rax]
test ebx, ebx
jne 0x140024524
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, [0x140071e00]
mov ebx, eax
call fcn.140028d04
inc edi
test rax, rax
jne 0x140024390
test ebx, ebx
jne 0x140024524
lea r8, str.Could_not_open_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f150
test eax, eax
je 0x140024524
cmp eax, 0xc
je 0x14002458e
cmp eax, 0x16
je 0x140024583
cmp eax, 0x22
je 0x140024583
cmp eax, 0x50
je 0x140024524
jmp 0x140024578
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 0x1400244a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x1400244a2
cmp eax, 0x425
jne 0x14002444b
cmp dword [rsp + 0x24], 3
je 0x1400244a2
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.14001fa00
test eax, eax
jne 0x1400244a2
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f150
test eax, eax
je 0x1400244a2
cmp eax, 0xc
je 0x1400245af
cmp eax, 0x16
je 0x1400245a4
cmp eax, 0x22
je 0x1400245a4
cmp eax, 0x50
jne 0x140024599
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 0x1400244c7
mov eax, edi
jmp 0x140024526
mov r8d, 0x400
lea rdx, [rsp + 0x840]
mov ecx, 0xd80d
call fcn.14001fa00
test eax, eax
jne 0x140024524
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rsp + 0x840]
call fcn.14002f150
test eax, eax
je 0x140024524
cmp eax, 0xc
je 0x1400245d0
cmp eax, 0x16
je 0x1400245c5
cmp eax, 0x22
je 0x1400245c5
cmp eax, 0x50
jne 0x1400245ba
xor eax, eax
mov rsi, qword [rsp + 0x1070]
mov rbp, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140027e60
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop rdi
ret
mov ecx, 0x80004005
call fcn.140012dc0
int3
mov ecx, 0x80070057
call fcn.140012dc0
int3
mov ecx, 0x8007000e
call fcn.140012dc0
int3
mov ecx, 0x80004005
call fcn.140012dc0
int3
mov ecx, 0x80070057
call fcn.140012dc0
int3
mov ecx, 0x8007000e
call fcn.140012dc0
int3
mov ecx, 0x80004005
call fcn.140012dc0
int3
mov ecx, 0x80070057
call fcn.140012dc0
int3
mov ecx, 0x8007000e
call fcn.140012dc0
int3
mov ecx, 0x80004005
call fcn.140012dc0
int3
mov ecx, 0x80070057
call fcn.140012dc0
int3
mov ecx, 0x8007000e
call fcn.140012dc0
int3