Function at 0x1400042c0
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.140005fa0
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 0x14000435f
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x1400045a3
test byte [rcx + 0x1c], 1
je 0x1400045a3
cmp byte [rcx + 0x19], 2
jb 0x1400045a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140024980]
lea edx, [rbx + 0xa]
mov r9d, eax
lea r8, [0x1400205b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001210
jmp 0x1400045a3
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.1400048e4
mov rsi, rax
test rax, rax
jne 0x1400043da
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x140004593
test byte [rcx + 0x1c], 1
je 0x140004593
cmp byte [rcx + 0x19], 2
jb 0x140004593
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xb]
lea r8, [0x1400205b0]
call fcn.1400011e0
jmp 0x140004593
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.140004850
cmp eax, 0xffffffff
jne 0x14000443e
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x14000456a
test byte [rcx + 0x1c], 1
je 0x14000456a
cmp byte [rcx + 0x19], 2
jb 0x14000456a
mov edx, 0xc
jmp 0x14000455a
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400044a7
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x14000456a
test byte [rcx + 0x1c], 1
je 0x14000456a
cmp byte [rcx + 0x19], 2
jb 0x14000456a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rdi + 0xd]
mov rcx, qword [0x140024980]
lea r8, [0x1400205b0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001210
jmp 0x14000456a
mov qword [rsp + 0x60], rbx
lea rax, [0x1400204fc]
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 0x140004536
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x14000456a
test byte [rcx + 0x1c], 1
je 0x14000456a
cmp byte [rcx + 0x19], 2
jb 0x14000456a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0xe]
jmp 0x140004488
mov rcx, qword [0x140024980]
lea rax, [0x140024980]
cmp rcx, rax
je 0x14000456a
test byte [rcx + 0x1c], 1
je 0x14000456a
cmp byte [rcx + 0x19], 5
jb 0x14000456a
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400205b0]
call fcn.1400011e0
mov edx, 2
mov rcx, rsi
call fcn.1400048ec
test rdi, rdi
je 0x140004585
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140004593
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.1400048c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret