Function at 0x14000fd48
Capabilities:
Create service
Persist via run registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, rcx
lea rdx, [rbp + 0x1b0]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
jne 0x14000fddb
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14000fdb0
mov rax, qword [rax]
mov rdx, qword [rsi + 0x10]
lea rcx, str.Unable_to_install__s____s_n
mov r8, rax
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x78]
lea edx, [r8 + 1]
call fcn.140003a60
xor eax, eax
jmp 0x1400100ba
mov ebx, 1
mov ecx, ebx
call fcn.1400027b0
lea r14, str.CNTService::InstallService
lea r15, str.NTService.cpp
test eax, eax
je 0x14000fe24
lea rax, [rbp + 0x1b0]
mov r9d, reloc.OLEAUT32.dll_VARIANT_UserUnmarshal
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, str.InstallService:_GetModuleFileName____s
mov rdx, r15
mov ecx, ebx
mov qword [rsp + 0x20], rax
call fcn.14000dc00
mov r8d, 0x104
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x14000fe7e
mov ecx, ebx
call fcn.1400027b0
test eax, eax
je 0x14000fe69
lea rax, str.InstallService:_GetLongPathName_returned_0._Continuing_with_Short_Path.
mov r9d, 0x123
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, r15
mov ecx, ebx
call fcn.14000c294
lea r8, [rbp + 0x1b0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14002eca8
mov ecx, ebx
call fcn.1400027b0
test eax, eax
je 0x14000feb1
lea rax, [rbp - 0x60]
mov r9d, 0x126
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, str.InstallService:_GetLongPathName____s
mov rdx, r15
mov ecx, ebx
mov qword [rsp + 0x20], rax
call fcn.14000dc00
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov ecx, ebx
test eax, eax
jne 0x14000feeb
call fcn.1400027b0
test eax, eax
je 0x14000ff1c
lea rax, str.No_space_is_found_in_path.So_Creating_a_service_with_an_unquoted_long_path
mov r9d, 0x12a
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, r15
mov ecx, ebx
call fcn.14000c294
jmp 0x14000ff1c
call fcn.1400027b0
test eax, eax
je 0x14000ff1c
lea rax, [rbp - 0x60]
mov r9d, 0x12d
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, str.Creating_a_service_using_quoted_long_path____s
mov rdx, r15
mov ecx, ebx
mov qword [rsp + 0x20], rax
call fcn.14000dc00
cmp dword [rsi + 0x58], edi
jne 0x14000ff89
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
lea r8, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400100b8
lea rcx, [rbp - 0x60]
call fcn.14002ebc0
mov rdx, qword [rsi + 8]
add eax, ebx
mov rcx, qword [rsp + 0x70]
mov r9d, 2
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
jmp 0x1400100b8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140010083
mov edx, dword [rsi + 0x64]
lea ecx, [rdx - 1]
cmp ecx, ebx
ja 0x14000ffb9
cmp dword [rsi + 0x68], 2
lea rcx, [rsi + 0x78]
jb 0x14000ffbc
mov rcx, rdi
mov rax, qword [rsi + 0x90]
mov r9d, dword [rsi + 0x60]
mov r8, qword [rsi + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x48], rcx
mov rcx, r14
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov eax, dword [rsi + 0x6c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsi + 0x68]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov rdx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r15, rax
test rax, rax
je 0x140010043
mov rdx, qword [rsi + 0x10]
lea rcx, str._s_installed._n
call fcn.140010ab8
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, ebx
jmp 0x140010078
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14001005a
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.CreateService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x78]
mov dl, bl
call fcn.140003a60
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400100b8
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14001009a
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x78]
mov dl, bl
call fcn.140003a60
mov eax, edi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret