Function at 0x1400199c0
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, rdx
cmp ecx, 1
jle 0x140019d18
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140019d18
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 0x140019bb6
lea rax, str.install...
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2d]
lea rcx, str.E:gitElevocRpcServer_v2ElevocRpcServer.cpp
call fcn.14001b4a0
lea rax, str.before_InstallService
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x33]
lea rcx, str.E:gitElevocRpcServer_v2ServiceInstaller.cpp
call fcn.14001b4a0
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x140019a9f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140019960
jmp 0x140019eb8
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140019ace
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140019960
jmp 0x140019eb8
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
lea rax, [0x140040080]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
lea r9d, [rbx + 0x14]
lea r8, str.Elevoc_Control_Service
lea rbx, str.ElevocService
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140019b59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140019960
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140019eb8
mov rdx, rbx
lea rcx, str._s_is_installed._n
call fcn.140019960
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x140019b90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.StartService_failed_w_err_0x_08lx_n
call fcn.140019960
jmp 0x140019b9f
mov rdx, rbx
lea rcx, str._s_is_started._n
call fcn.140019960
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140019eb8
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 0x140019e88
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp + 8], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140019ab5
mov r8d, 0x10024
lea rbx, str.ElevocService
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140019c40
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140019960
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140019eb8
lea r8, [rbp - 0x10]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x140019ccf
mov rdx, rbx
lea rcx, str.Stopping__s.
call fcn.140019960
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x140019cb1
mov eax, dword [rbp - 0xc]
cmp eax, 3
jne 0x140019cb4
lea rcx, [0x140042444]
call fcn.140019960
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x140019c81
mov eax, dword [rbp - 0xc]
mov rdx, rbx
cmp eax, 1
lea rcx, [0x140042448]
je 0x140019cca
lea rcx, str._n_s_failed_to_stop._n
call fcn.140019960
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x140019cf2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140019960
jmp 0x140019d01
mov rdx, rbx
lea rcx, str._s_is_removed._n
call fcn.140019960
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140019eb8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
lea rdi, vtable.CServiceBase.0
mov qword [rsp + 0x70], rdi
lea rbx, str.ElevocService
mov qword [rsp + 0x78], rbx
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x80], 0x10
mov dword [rbp - 0x7c], 2
mov qword [rbp - 0x78], 0x85
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140042240]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
je 0x140019da2
mov edx, eax
lea rcx, str.Provider_not_registered._EventRegister_failed_with__d_n
call fcn.140019960
nop
lea rsi, vtable.CSampleService.0
mov qword [rsp + 0x70], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
lea r14, vtable.HeadSetMonitor.0
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], 1
mov qword [rbp - 0x20], rbx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [0x140041a40]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140041a30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x30]
nop
lea rax, [rsp + 0x70]
mov qword [0x14004d020], rax
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x10], rax
lea rax, [0x140037050]
mov qword [rbp - 8], rax
mov qword [rbp], rbx
mov qword [rbp + 8], rbx
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140019e58
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140019960
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x30], r14
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140019e74
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x20], rbx
mov qword [rsp + 0x70], rdi
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140019e88
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
lea rcx, str.Parameters:_n
call fcn.140019960
lea rcx, str.__install__to_install_the_service._n
call fcn.140019960
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140019960
lea rcx, str.__console__to_run_in_console_mode._n
call fcn.140019960
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400379a0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret