Function at 0x140024750
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.1400280f0
sub rsp, rax
mov rax, qword [0x1400700d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
call fcn.140021cb0
test eax, eax
jne 0x14002478b
mov eax, 1
jmp 0x140024a36
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 0x140024844
xor edx, edx
lea rcx, [0x140072e00]
call fcn.140028b14
xor ebx, ebx
lea edi, [rbp + 1]
test rax, rax
je 0x1400247ff
test ebx, ebx
jne 0x14002483d
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, [0x140072e00]
mov ebx, eax
call fcn.140028b14
inc edi
test rax, rax
jne 0x1400247c7
test ebx, ebx
jne 0x14002483d
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f3d0
test eax, eax
je 0x14002483d
cmp eax, 0xc
je 0x140024a6d
cmp eax, 0x16
je 0x140024a62
cmp eax, 0x22
je 0x140024a62
cmp eax, 0x50
jne 0x140024a57
xor eax, eax
jmp 0x140024a2e
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 0x140024917
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edx, edx
lea rcx, [0x140072e00]
call fcn.140028b14
xor ebx, ebx
lea edi, [rsi + 1]
test rax, rax
je 0x1400248d0
nop dword [rax]
test ebx, ebx
jne 0x140024a24
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, [0x140072e00]
mov ebx, eax
call fcn.140028b14
inc edi
test rax, rax
jne 0x140024890
test ebx, ebx
jne 0x140024a24
lea r8, str.Could_not_open_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f3d0
test eax, eax
je 0x140024a24
cmp eax, 0xc
je 0x140024a8e
cmp eax, 0x16
je 0x140024a83
cmp eax, 0x22
je 0x140024a83
cmp eax, 0x50
je 0x140024a24
jmp 0x140024a78
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 0x1400249a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x1400249a2
cmp eax, 0x425
jne 0x14002494b
cmp dword [rsp + 0x24], 3
je 0x1400249a2
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.140020fe0
test eax, eax
jne 0x1400249a2
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002f3d0
test eax, eax
je 0x1400249a2
cmp eax, 0xc
je 0x140024aaf
cmp eax, 0x16
je 0x140024aa4
cmp eax, 0x22
je 0x140024aa4
cmp eax, 0x50
jne 0x140024a99
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 0x1400249c7
mov eax, edi
jmp 0x140024a26
mov r8d, 0x400
lea rdx, [rsp + 0x840]
mov ecx, 0xd80d
call fcn.140020fe0
test eax, eax
jne 0x140024a24
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rsp + 0x840]
call fcn.14002f3d0
test eax, eax
je 0x140024a24
cmp eax, 0xc
je 0x140024ad0
cmp eax, 0x16
je 0x140024ac5
cmp eax, 0x22
je 0x140024ac5
cmp eax, 0x50
jne 0x140024aba
xor eax, eax
mov rsi, qword [rsp + 0x1070]
mov rbp, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140027c60
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop rdi
ret
mov ecx, 0x80004005
call fcn.140012fd0
int3
mov ecx, 0x80070057
call fcn.140012fd0
int3
mov ecx, 0x8007000e
call fcn.140012fd0
int3
mov ecx, 0x80004005
call fcn.140012fd0
int3
mov ecx, 0x80070057
call fcn.140012fd0
int3
mov ecx, 0x8007000e
call fcn.140012fd0
int3
mov ecx, 0x80004005
call fcn.140012fd0
int3
mov ecx, 0x80070057
call fcn.140012fd0
int3
mov ecx, 0x8007000e
call fcn.140012fd0
int3
mov ecx, 0x80004005
call fcn.140012fd0
int3
mov ecx, 0x80070057
call fcn.140012fd0
int3
mov ecx, 0x8007000e
call fcn.140012fd0
int3