Function at 0x14001aa80
Capabilities:
Accept command line arguments
Create process on windows
Create service
Delete service
Persist via windows service
Query service status
Self delete
Set registry value
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140041008]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdx, r8
lea rcx, str.cmd_line_:__s_n
mov rbx, r8
call fcn.14001de10
xor r15d, r15d
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov dword [rsp + 0x70], r15d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x70], 1
mov rbx, rax
jl 0x14001b4d5
mov rdx, qword [rax]
mov eax, 0xfffd
movzx ecx, word [rdx]
sub cx, 0x2d
test ax, cx
jne 0x14001b4d5
add rdx, 2
lea rcx, str.install
call fcn.1400221fc
test eax, eax
jne 0x14001ac9d
mov r8d, 0x104
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14001ab4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov ecx, 0x100
mov r8d, eax
call fcn.14001dcd0
jmp 0x14001b624
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14001ae22
mov qword [rsp + 0x60], r15
lea rax, [0x14003a6d4]
mov qword [rsp + 0x58], r15
lea rbx, [0x14003a708]
mov qword [rsp + 0x50], rax
lea r8, str.Dolphin_Starter_Service
mov qword [rsp + 0x48], r15
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], r15
mov edi, 2
mov qword [rsp + 0x38], rax
mov r9d, 0xf01ff
mov dword [rsp + 0x30], 1
mov rdx, rbx
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14001abf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateService_failed_w_err_0x_08lx_n
mov ecx, 0x100
mov r8d, eax
call fcn.14001dcd0
jmp 0x14001b4b5
mov ecx, 0x56
call fcn.14001e484
lea r8, str.SYSTEMCurrentControlSetServices_
mov edx, 0x2b
mov rcx, rax
mov r14, rax
call fcn.1400249c8
mov r8, rbx
mov edx, 0x2b
mov rcx, r14
call fcn.14002492c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], r15
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001ac89
mov rcx, qword [rsp + 0x78]
lea rax, str.Provides_session_and_desktop_application_management_for_dolphin_products
mov dword [rsp + 0x28], 0x92
lea rdx, str.Description
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.14001e450
lea rdx, str._s_is_installed._n
jmp 0x14001b4a8
mov rdx, qword [rbx]
lea rcx, str.remove
add rdx, 2
call fcn.1400221fc
test eax, eax
je 0x14001b368
mov rdx, qword [rbx]
lea rcx, str.uninstall
add rdx, 2
call fcn.1400221fc
test eax, eax
je 0x14001b368
mov rdx, qword [rbx]
lea rcx, str.start
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001ade0
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea r8d, [rax + 1]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14001ae22
lea rbx, [0x14003a708]
mov r8d, 0x14
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14001b3b4
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14001b4b5
mov r8, rbx
lea rdx, str.Starting__s.
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001adb9
mov eax, dword [rbp - 0x7c]
cmp eax, 2
jne 0x14001adbc
lea rdx, [0x14003b974]
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001ad84
mov eax, dword [rbp - 0x7c]
lea rdx, str._n_s_has_been_started._n
mov r8, rbx
mov ecx, 0x100
cmp eax, 4
je 0x14001b4b0
lea rdx, str._n_s_failed_to_start._n
jmp 0x14001b4b0
mov rdx, qword [rbx]
lea rcx, str.stop
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001af0c
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea r8d, [rax + 1]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001ae41
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov ecx, 0x100
mov r8d, eax
call fcn.14001dcd0
jmp 0x14001b624
lea rbx, [0x14003a708]
mov r8d, 0x24
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14001b3b4
lea r8, [rbp - 0x80]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001b4b5
mov r8, rbx
lea rdx, str.Stopping__s.
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001aee5
mov eax, dword [rbp - 0x7c]
cmp eax, 3
jne 0x14001aee8
lea rdx, [0x14003b974]
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001aeb0
mov eax, dword [rbp - 0x7c]
lea rdx, [0x14003b978]
mov r8, rbx
mov ecx, 0x100
cmp eax, 1
je 0x14001b4b0
lea rdx, str._n_s_failed_to_stop._n
jmp 0x14001b4b0
mov rdx, qword [rbx]
lea rcx, str.rundesk
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b0dd
mov rsi, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov edi, 2
test rax, rax
je 0x14001b0d6
lea rcx, [rsp + 0x78]
mov r9d, 0xa0
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x40]
mov rcx, rax
mov edx, edi
call qword [sym.imp.USER32.dll_GetUserObjectInformationW]
lea rax, [rsp + 0x78]
mov r9d, 0xa0
lea r8, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, r14
call qword [sym.imp.USER32.dll_GetUserObjectInformationW]
lea rcx, [rbp - 0x60]
sub rcx, rdi
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x14001af95
mov eax, dword [0x14003a5dc]
mov dword [rcx], eax
lea rcx, [rbp - 0x60]
sub rcx, rdi
nop
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x14001afb0
lea r8, [rbp + 0x40]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14001afd0
lea r8, [rbp - 0x60]
mov ecx, 0x100
lea rdx, [0x14003a5e0]
call fcn.14001dcd0
lea rax, [rbp - 0x60]
sub rsi, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + rsi]
sub edx, ecx
jne 0x14001b012
add rax, rdi
test ecx, ecx
jne 0x14001b000
test edx, edx
jne 0x14001b0d6
mov esi, dword [rsp + 0x70]
cmp esi, 3
jne 0x14001b083
mov rdi, qword [rbx + 0x10]
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x60]
call fcn.14001fd60
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x70
mov dword [rbp - 0x5c], 0x440
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x30], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea r8, [0x14003b57c]
mov rdx, rdi
lea rcx, [0x14003b580]
test eax, eax
jne 0x14001b077
lea rcx, str.shell_execute_:_Failed_to_shellexecute_process_:__s__s
call fcn.14001bd20
mov esi, dword [rsp + 0x70]
cmp esi, 3
jle 0x14001b624
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x20c
call fcn.14001fd60
mov edi, 3
cmp esi, edi
jle 0x14001b0cd
lea rsi, [rbx + 0x18]
nop word [rax + rax]
mov r8, qword [rsi]
lea rcx, [rbp + 0x40]
mov edx, 0x104
call fcn.14002492c
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rsp + 0x70]
jl 0x14001b0b0
mov rbx, qword [rbx + 0x10]
jmp 0x14001b1b1
mov eax, edi
jmp 0x14001b64b
mov rdx, qword [rbx]
lea rcx, [0x14003a778]
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b20b
mov esi, dword [rsp + 0x70]
cmp esi, 2
jne 0x14001b163
mov rdi, qword [rbx + 8]
lea r8d, [rax + 0x70]
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14001fd60
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x70
mov dword [rbp - 0x5c], 0x440
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x30], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea r8, [0x14003b57c]
mov rdx, rdi
lea rcx, [0x14003b580]
test eax, eax
jne 0x14001b157
lea rcx, str.shell_execute_:_Failed_to_shellexecute_process_:__s__s
call fcn.14001bd20
mov esi, dword [rsp + 0x70]
cmp esi, 2
jle 0x14001b624
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x20c
call fcn.14001fd60
mov edi, 2
cmp esi, edi
jle 0x14001b1ad
lea rsi, [rbx + 0x10]
nop word [rax + rax]
mov r8, qword [rsi]
lea rcx, [rbp + 0x40]
mov edx, 0x104
call fcn.14002492c
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rsp + 0x70]
jl 0x14001b190
mov rbx, qword [rbx + 8]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x70]
call fcn.14001fd60
lea rax, [rbp + 0x40]
mov dword [rbp - 0x60], 0x70
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x5c], 0x440
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x30], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea r8, [rbp + 0x40]
mov rdx, rbx
test eax, eax
je 0x14001b31e
lea rcx, [0x14003b580]
call fcn.14001bd20
jmp 0x14001b624
mov rdx, qword [rbx]
lea rcx, [0x14003a780]
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b230
mov rcx, qword [rbx + 8]
call fcn.14001c770
jmp 0x14001b624
mov rdx, qword [rbx]
lea rcx, str.closet
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b255
mov rcx, qword [rbx + 8]
call fcn.14001c900
jmp 0x14001b624
mov rdx, qword [rbx]
lea rcx, str.restart
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b32f
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [rsp + 0x78]
mov rcx, rbx
call fcn.14001be50
test eax, eax
je 0x14001b624
mov rcx, rbx
call fcn.14001c770
lea rdx, str.dol_logon.exe
mov rcx, rbx
call fcn.1400221fc
test eax, eax
jne 0x14001b2c6
lea rcx, str.sam.exe
call fcn.14001c900
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x70]
call fcn.14001fd60
lea rbx, str._wts__startup
mov dword [rbp - 0x60], 0x70
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x5c], 0x440
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x30], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov r8, rbx
mov rdx, rdi
test eax, eax
je 0x14001b31e
lea rcx, [0x14003b580]
call fcn.14001bd20
jmp 0x14001b624
lea rcx, str.shell_execute_:_Failed_to_shellexecute_process_:__s__s
call fcn.14001bd20
jmp 0x14001b624
mov rdx, qword [rbx]
lea rcx, str.attach
add rdx, 2
call fcn.1400221fc
test eax, eax
jne 0x14001b624
xor r9d, r9d
lea r8, str.Run_Attach
lea rdx, str.Attach
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14001b624
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea r8d, [rax + 1]
mov dword [rbp - 0x68], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14001ae22
lea rbx, [0x14003a708]
mov r8d, 0x10024
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14001b3d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenService_failed_w_err_0x_08lx_n
mov ecx, 0x100
mov r8d, eax
call fcn.14001dcd0
jmp 0x14001b4b5
lea r8, [rbp - 0x80]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001b478
mov r8, rbx
lea rdx, str.Stopping__s.
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001b455
nop dword [rax]
mov eax, dword [rbp - 0x7c]
cmp eax, 3
jne 0x14001b458
lea rdx, [0x14003b974]
mov ecx, 0x100
call fcn.14001dcd0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001b420
mov eax, dword [rbp - 0x7c]
lea rdx, [0x14003b978]
mov r8, rbx
mov ecx, 0x100
cmp eax, 1
je 0x14001b473
lea rdx, str._n_s_failed_to_stop._n
call fcn.14001dcd0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001b4a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.DeleteService_failed_w_err_0x_08lx_n
mov ecx, 0x100
mov r8d, eax
call fcn.14001dcd0
jmp 0x14001b4b5
lea rdx, str._s_is_removed._n
mov r8, rbx
mov ecx, 0x100
call fcn.14001dcd0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14001b624
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001b624
lea rcx, str.Parameters:_n
call fcn.14001a010
lea rcx, str.__install__to_install_the_service._n
call fcn.14001a010
lea rcx, str.__uninstall___to_remove_the_service._n
call fcn.14001a010
lea rcx, str.__stop___to_stop_the_service._n
call fcn.14001a010
lea rcx, str.__start___to_start_the_service._n
call fcn.14001a010
mov edi, 2
mov qword [rbp - 8], r15
lea rbx, [0x14003a708]
mov dword [rbp - 0x28], 0x10
mov qword [rbp - 0x30], rbx
xorps xmm0, xmm0
lea rbx, vtable.dol_start_service.0
mov dword [rbp - 0x24], edi
lea edx, [rdi - 1]
mov qword [rbp - 0x20], 0x85
xor r9d, r9d
mov qword [rbp - 0x18], r15
xor r8d, r8d
mov dword [rbp - 0x10], r15d
xor ecx, ecx
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x60], rbx
mov dword [rbp], r15d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 8], rax
test rax, rax
je 0x14001b677
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], r15
mov qword [0x140042f18], rax
lea rcx, [rbp - 0x80]
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x80], rax
lea rax, [0x14001cc80]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], r15
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14001b5bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.14001a010
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x60], rbx
test rcx, rcx
je 0x14001b5d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], r15
mov rcx, qword [rbp - 0x58]
lea rax, vtable.CServiceBase.0
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x14001b5ec
call fcn.14001e450
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14001b5fa
call fcn.14001e450
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001b608
call fcn.14001e450
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001b616
call fcn.14001e450
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14001b624
call fcn.14001e450
lea rcx, str.doL_start_terminating_n
call fcn.14001de10
mov rcx, qword [0x140042f28]
test rcx, rcx
je 0x14001b642
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140042f28], r15
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14001e3f0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14003f028]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x78]
call fcn.14001fbec
int3