Function at 0x1400128e0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
cmp ecx, 1
jle 0x140012bdf
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140012bdf
add rdx, 2
lea rcx, str.install
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140012955
call fcn.140017740
jmp 0x140012cdd
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.remove
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140012acc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x3f], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400129b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140012880
jmp 0x140012cdd
mov r8d, 0x10024
lea rdi, [0x140025e20]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400129f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140012880
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140012cdd
lea r8, [rbp + 0x27]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140012a83
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140012880
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140012a65
mov eax, dword [rbp + 0x2b]
cmp eax, 3
jne 0x140012a68
lea rcx, [0x140027174]
call fcn.140012880
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140012a35
mov eax, dword [rbp + 0x2b]
mov rdx, rdi
cmp eax, 1
lea rcx, [0x140027178]
je 0x140012a7e
lea rcx, str._n_s_failed_to_stop._n
call fcn.140012880
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140012aa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140012880
jmp 0x140012ab5
mov rdx, rdi
lea rcx, str._s_is_removed._n
call fcn.140012880
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140012cdd
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.console
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140012cad
lea rsi, vtable.CServiceBase.0
mov qword [rbp - 0x29], rsi
lea rdi, [0x140025e20]
mov qword [rbp - 0x21], rdi
xor ebx, ebx
mov qword [rbp + 7], rbx
mov dword [rbp - 0x19], 0x10
mov dword [rbp - 0x15], 2
mov qword [rbp - 0x11], 5
mov qword [rbp - 9], rbx
mov dword [rbp - 1], ebx
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140026f60]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
je 0x140012b4a
mov edx, eax
lea rcx, str.Provider_not_registered._EventRegister_failed_with__d_n
call fcn.140012880
lea rax, vtable.DtsApoService.0
mov qword [rbp - 0x29], rax
mov qword [rbp + 0x17], rbx
mov byte [rbp + 0x1f], 1
mov r8b, 4
lea rdx, str.Running_in_console_mode._Press_enter_to_start.
lea rcx, [rbp - 0x29]
call qword [0x140026ad0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov r8b, 4
lea rdx, str.Starting_Rpc_Server..
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 8]
mov r8b, 4
lea rdx, str.Press_enter_to_stop_the_server_and_exit.
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x10]
nop
mov qword [rbp - 0x29], rsi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140012cdd
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x140012cdd
lea rsi, vtable.CServiceBase.0
mov qword [rbp - 0x29], rsi
lea rdi, [0x140025e20]
mov qword [rbp - 0x21], rdi
xor ebx, ebx
mov qword [rbp + 7], rbx
mov dword [rbp - 0x19], 0x10
mov dword [rbp - 0x15], 2
mov qword [rbp - 0x11], 5
mov qword [rbp - 9], rbx
mov dword [rbp - 1], ebx
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140026f60]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
je 0x140012c40
mov edx, eax
lea rcx, str.Provider_not_registered._EventRegister_failed_with__d_n
call fcn.140012880
lea rax, vtable.DtsApoService.0
mov qword [rbp - 0x29], rax
mov qword [rbp + 0x17], rbx
mov byte [rbp + 0x1f], bl
lea rax, [rbp - 0x29]
mov qword [0x1400310d0], rax
mov rax, qword [rbp - 0x21]
mov qword [rbp + 0x27], rax
lea rax, [0x140017230]
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rbx
lea rcx, [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140012c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140012880
mov qword [rbp - 0x29], rsi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140012cad
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rcx, str.Parameters:_n
call fcn.140012880
lea rcx, str.__install__to_install_the_service._n
call fcn.140012880
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140012880
lea rcx, str.__console__to_run_in_console_mode._n
call fcn.140012880
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001d660
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret