Function at 0x140016710
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rax - 0x88], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov r13, qword [0x14004ece0]
mov qword [rsp + 0x78], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xor esi, esi
mov qword [rsp + 0x70], rsi
cmp qword [rcx + 0x18], 8
jb 0x140016771
mov rcx, qword [rcx]
movdqa xmm0, xmmword [0x140047460]
movdqu xmmword [rsp + 0xc0], xmm0
mov word [rsp + 0xb0], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x140016791
mov rdx, rcx
lea rcx, [rsp + 0xb0]
call fcn.14000cb10
nop
lea r8, [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000bc00
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x14001680b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b32
call fcn.14001a574
mov r15d, esi
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
nop dword [rax + rax]
mov rax, r12
sub rax, rdi
sar rax, 5
mov edx, r15d
cmp rdx, rax
jae 0x140016ab1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rsi
shl rdx, 5
add rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.14000de50
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.14000bdf0
mov r14, qword [rsp + 0xb8]
mov rax, r14
mov rbx, qword [rsp + 0xb0]
sub rax, rbx
sar rax, 5
cmp rax, 5
je 0x14001692d
test rbx, rbx
je 0x1400168df
mov rdx, r14
mov rcx, rbx
call fcn.14000db80
mov rdx, qword [rsp + 0xc0]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400168d6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b38
mov rcx, rbx
call fcn.14001a574
nop
test rdi, rdi
je 0x140016928
mov rdx, r12
mov rcx, rdi
call fcn.14000db80
mov rdx, qword [rsp + 0x70]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140016920
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b3e
mov rcx, rdi
call fcn.14001a574
jmp 0x140016b05
lea rcx, [rbx + 0x80]
cmp qword [rcx + 0x18], 8
jb 0x14001693e
mov rcx, qword [rcx]
call fcn.14002396c
mov dword [rsp + 0x50], eax
mov qword [0x14004ece0], 0xffffffff80000002
lea rsi, [rbx + 0x40]
mov r8, qword [rsi + 0x10]
mov eax, 1
cmp r8, rax
cmovb rax, r8
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140016973
mov rcx, qword [rsi]
sub r8, rax
mov qword [rsi + 0x10], r8
lea r8, [r8*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.14001c700
mov r8, qword [rsi + 0x10]
lea r9, [r8 - 1]
cmp r8, r9
jb 0x140016b44
mov rax, r8
sub rax, r9
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400169bb
mov rax, qword [rsi]
lea rcx, [rax + r9*2]
sub r8, rdx
mov qword [rsi + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call fcn.14001c700
cmp qword [rsi + 0x18], 8
jb 0x1400169e4
mov rsi, qword [rsi]
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov eax, dword [0x14004ecd8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140016a5b
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x140016aa7
mov rdx, r14
mov rcx, rbx
call fcn.14000db80
mov rdx, qword [rsp + 0xc0]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140016a9f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b4a
mov rcx, rbx
call fcn.14001a574
inc r15d
xor esi, esi
jmp 0x140016820
test rdi, rdi
je 0x140016af7
mov rdx, r12
mov rcx, rdi
call fcn.14000db80
mov rdx, qword [rsp + 0x70]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140016aee
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b50
mov rcx, rdi
call fcn.14001a574
nop
jmp 0x140016afe
mov qword [0x14004ece0], r13
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14001a550
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140023bcc
int3
call fcn.140023bcc
nop
call fcn.140023bcc
nop
call fcn.140019760
nop
call fcn.140023bcc
nop
call fcn.140023bcc
int3