Function at 0x140003cf0
Capabilities:
Create service
Delete file
Get common file path
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rbp + 0x210], rax
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x1400041a6
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], sil
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140003d65
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x70]
call fcn.140004580
nop
mov r8d, 0xb
lea rdx, str.mhyprot.sys
lea rcx, [rsp + 0x70]
call fcn.1400046e0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140003e00
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003dfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000576c
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov rdi, qword [rbp - 0x40]
lea rbx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rbx, qword [rbp - 0x50]
call fcn.1400052d0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400032a0
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x30]
call fcn.14000540c
mov r8d, eax
test eax, eax
jne 0x140003e9d
mov ecx, dword [rbp - 0x20]
bt ecx, 0xa
jae 0x140003e92
mov edx, dword [rbp - 0x1c]
cmp edx, 0xa000000c
jne 0x140003e83
lea ecx, [rax + 4]
jmp 0x140003eb8
cmp edx, 0xa0000003
jne 0x140003e92
mov ecx, 0xa
jmp 0x140003eb8
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x140003eb8
sub eax, 2
je 0x140003eb3
sub eax, 1
je 0x140003eb3
sub eax, 0x32
je 0x140003eb3
cmp eax, 0x46
mov ecx, esi
jne 0x140003eb8
mov ecx, 1
mov dword [rbp - 0x30], r8d
lea rax, [0x14013d048]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
test ecx, ecx
je 0x140003f18
cmp ecx, 1
setne bl
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140003f2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003f25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor bl, bl
test r8d, r8d
jne 0x1400041d0
jmp 0x140003eda
call fcn.14000576c
test bl, bl
je 0x140003f42
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rbx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rbx, qword [rbp - 0x50]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140001f80
nop
mov r8d, 0x131148
lea rdx, [0x140008460]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 8]
test byte [rdx + rax + 0x10], 6
je 0x140003fcc
call fcn.1400023a0
test rax, rax
jne 0x140003fbe
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x10]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x10]
call fcn.140001290
jmp 0x140004161
call fcn.1400023a0
test rax, rax
jne 0x140003ff3
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x10]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x10]
call fcn.140001290
lea rbx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rbx, qword [rbp - 0x50]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004156
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
lea r8, str.mhyprotect
lea rdx, str.mhyprotect
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140004096
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [0x14013e428], rbx
jmp 0x1400040e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x140004131
lea rcx, str.Service_already_exists__open_handle_n
call fcn.1400026b0
mov r8d, 0x10030
lea rdx, str.mhyprotect
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
mov qword [0x14013e428], rax
test rax, rax
je 0x140004161
cmp rax, 0xffffffffffffffff
je 0x140004161
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140004161
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str._mhyprotect
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x14013e420], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140004161
mov bl, 1
jmp 0x140004163
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.mhyprotect
lea rcx, str.Failed_to_create__s_service.__0x_lX__n
call fcn.1400026b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [0x14013e428], 0xffffffffffffffff
xor bl, bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400041a1
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000419c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000419c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000576c
movzx eax, bl
jmp 0x1400041a8
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140005710
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
call fcn.140003c90
int3