Function at 0x140008230
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x380
mov qword [r11 - 0x318], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rsp + 0x370], rax
lea rax, str.InstallService
mov qword [r11 - 0x310], rax
lea r15, str.__InstallService_
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 3
lea r9, [0x1400278f0]
mov r8d, 0xbf
lea rdx, str.Thpsvr.cpp
lea rcx, [r11 - 0x308]
call fcn.1400013d0
mov r8, qword [rsp + 0x88]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x90]
call fcn.1400013f0
nop
xor r14d, r14d
mov word [rsp + 0x160], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x162]
call fcn.14000b0c0
lea rax, [0x140020280]
mov qword [rsp + 0x78], rax
call fcn.140002590
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140008314
mov ecx, 0x80004005
call fcn.140002340
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r8d, 0x104
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140008387
mov edi, 0x80004005
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, [0x1400278f0]
mov r8d, 0xc9
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x108]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140008516
lea r8, [rsp + 0x160]
lea rdx, str.__s_
lea rcx, [rsp + 0x70]
call fcn.140007300
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140008404
mov edi, 0x80004003
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, [0x1400278f0]
mov r8d, 0xce
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0xb8]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
mov rbx, qword [rsp + 0x70]
jmp 0x140008516
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0x10000000
lea r8, str.DSDHDDProtectService
lea rdx, str.DSDHDDProtectService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x1400084a5
mov edi, 0x80004003
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, [0x1400278f0]
mov r8d, 0xde
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x130]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x14000850c
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140008500
mov edi, 0x80004005
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, [0x1400278f0]
mov r8d, 0xe0
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0xe0]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140008503
mov edi, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000852c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov r8, qword [rsp + 0x88]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x90]
call fcn.1400013f0
mov eax, edi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14000b090
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret