Function at 0x14000ec80
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x410
call fcn.140035480
xor ebx, ebx
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000ed1b
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef62
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef62
cmp byte [rcx + 0x19], 2
jb 0x14000ef62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140071d28]
lea edx, [rbx + 0xa]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000ec20
jmp 0x14000ef62
mov qword [rsp + 0x4a0], rbp
mov rcx, 0xffffffffffffffff
mov ebp, 0x10a
mov qword [rsp + 0x4a8], rsi
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140014cf8
mov rsi, rax
test rax, rax
jne 0x14000ed99
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef52
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef52
cmp byte [rcx + 0x19], 2
jb 0x14000ef52
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xb]
lea r8, [0x1400616f0]
call fcn.1400017d0
jmp 0x14000ef52
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x22
mov r9d, 0x22
mov qword [rsp + 0x20], rax
lea r8, str._c_s_c
mov rdx, rbp
mov rcx, rsi
call fcn.14000f220
cmp eax, 0xffffffff
jne 0x14000ee00
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef2e
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef2e
cmp byte [rcx + 0x19], 2
jb 0x14000ef2e
mov edx, 0xc
jmp 0x14000ef1e
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000ee65
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef2e
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef2e
cmp byte [rcx + 0x19], 2
jb 0x14000ef2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rdi + 0xd]
mov rcx, qword [0x140071d28]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000ec20
jmp 0x14000ef2e
mov qword [rsp + 0x60], rbx
lea rax, [0x140060f58]
mov qword [rsp + 0x58], rbx
lea r8, str.Intel_Bluetooth_Service
mov qword [rsp + 0x50], rax
lea rdx, str.iBtSiva
mov qword [rsp + 0x48], rbx
mov r9d, 4
mov qword [rsp + 0x40], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
jne 0x14000eef7
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef2e
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef2e
cmp byte [rcx + 0x19], 2
jb 0x14000ef2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0xe]
jmp 0x14000ee4d
mov rcx, qword [0x140071d28]
lea rax, [0x140071d28]
cmp rcx, rax
je 0x14000ef2e
test dword [rcx + 0x1c], 0x8000000
je 0x14000ef2e
cmp byte [rcx + 0x19], 5
jb 0x14000ef2e
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400616f0]
call fcn.1400017d0
mov rcx, rsi
call fcn.140014cf0
test rdi, rdi
je 0x14000ef44
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000ef52
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x4a0]
mov rsi, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140011f50
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret