Function at 0x140002540
Capabilities:
Delete service
Get common file path
Stop service

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x2b0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rdx
mov esi, ecx
cmp ecx, 2
jge 0x14000257e
mov rdx, qword [rdx]
lea rcx, str.Usage:__s_n__proc___List_Process_Creation_Callbacks_n__delproc__address____Remove_Process_Creation_Callback_n__thread___List_Thread_Creation_Callbacks_n__delthread___Remove_Thread_Creation_Callback_n__installDriver___Install_the_MSI_driver_n__uninstallDriver___Uninstall_the_MSI_driver_n__img___List_Image_Load_Callbacks_n__delimg__address____Remove_Image_Load_Callback_n__reg___List_Registry_modification_callbacks_n
call fcn.140001080
jmp 0x1400028b6
movups xmm0, xmmword [str.RTCore64.sys]
mov eax, dword [0x140005ff0]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x2c0], rbx
mov ecx, 0x112
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x2d0], rdi
movsd xmm0, qword [0x140005fe8]
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r9d, 0xe
lea r8, [rsp + 0x50]
mov edx, 0x112
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdi, qword [r14 + 8]
lea rdx, str.proc
inc rdi
xor ebx, ebx
mov ecx, ebx
nop
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000260f
cmp rcx, 5
jne 0x1400025f0
xor ecx, ecx
call fcn.140002310
jmp 0x1400028a6
mov rcx, rbx
lea rdx, str.delproc
nop dword [rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140002655
cmp rcx, 8
jne 0x140002620
cmp esi, 3
jne 0x140002655
lea r8d, [rcx + 8]
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov rcx, rax
call fcn.140002310
jmp 0x1400028a6
lea rdx, str.installDriver
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002687
lea r8, [rsp + 0x70]
call fcn.140001570
cmp eax, 5
jne 0x1400028a6
lea rcx, str.____0x00000005___Access_Denied___Did_you_run_as_administrator__n
jmp 0x1400028a1
lea rdx, str.uninstallDriver
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400027a3
lea r8d, [rax + 1]
xor ecx, ecx
lea rdx, str.ServicesActive
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000270b
mov r8d, 0x20
lea rdx, str.RTCore64
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400026f5
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14000270b
lea rcx, str.____s_service_stopped_n
jmp 0x14000271f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x14000278a
lea rcx, str.____s_service_not_running_n
lea rdx, str.RTCore64
call fcn.140001020
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400028a6
mov r8d, 0x10000
lea rdx, str.RTCore64
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000277c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400028a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_uninstall___kull_m_service_stop__0x_08x__n
call fcn.140001020
jmp 0x1400028a6
mov rcx, rbx
lea rdx, [0x1400060b0]
nop dword [rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1400027cf
cmp rcx, 4
jne 0x1400027b0
xor ecx, ecx
call fcn.140001ea0
jmp 0x1400028a6
mov rcx, rbx
lea rdx, str.thread
nop dword [rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1400027ff
cmp rcx, 7
jne 0x1400027e0
xor ecx, ecx
call fcn.1400020d0
jmp 0x1400028a6
lea rdx, str.delthread
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002831
cmp esi, 3
jne 0x140002831
mov rcx, qword [r14 + 0x10]
lea r8d, [rax + 0x10]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov rcx, rax
call fcn.1400020d0
jmp 0x1400028a6
mov rcx, rbx
lea rdx, str.delimg
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140002872
cmp rcx, 7
jne 0x140002840
cmp esi, 3
jne 0x140002872
lea r8d, [rcx + 9]
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov rcx, rax
call fcn.140001ea0
jmp 0x1400028a6
lea rcx, [0x1400060d4]
nop dword [rax]
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x14000289a
cmp rbx, 4
jne 0x140002880
call fcn.140001c40
jmp 0x1400028a6
lea rcx, [0x1400060d8]
call fcn.140001020
mov rdi, qword [rsp + 0x2d0]
mov rbx, qword [rsp + 0x2c0]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140003140
mov rsi, qword [rsp + 0x2d8]
add rsp, 0x2b0
pop r14
ret