Function at 0x140015a20
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 [0x14004d010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov r13, qword [0x14004dcf0]
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 0x140015a81
mov rcx, qword [rcx]
movdqa xmm0, xmmword [0x140046520]
movdqu xmmword [rsp + 0xc0], xmm0
mov word [rsp + 0xb0], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x140015aa1
mov rdx, rcx
lea rcx, [rsp + 0xb0]
call fcn.14000c900
nop
lea r8, [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000b990
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x140015b1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015b16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015e42
call fcn.140019b64
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 0x140015dc1
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.14000d410
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.14000bb90
mov r14, qword [rsp + 0xb8]
mov rax, r14
mov rbx, qword [rsp + 0xb0]
sub rax, rbx
sar rax, 5
cmp rax, 5
je 0x140015c3d
test rbx, rbx
je 0x140015bef
mov rdx, r14
mov rcx, rbx
call fcn.14000d0c0
mov rdx, qword [rsp + 0xc0]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140015be6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015e54
mov rcx, rbx
call fcn.140019b64
nop
test rdi, rdi
je 0x140015c38
mov rdx, r12
mov rcx, rdi
call fcn.14000d0c0
mov rdx, qword [rsp + 0x70]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140015c30
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015e48
mov rcx, rdi
call fcn.140019b64
jmp 0x140015e15
lea rcx, [rbx + 0x80]
cmp qword [rcx + 0x18], 8
jb 0x140015c4e
mov rcx, qword [rcx]
call fcn.140022fc8
mov dword [rsp + 0x50], eax
mov qword [0x14004dcf0], 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 0x140015c83
mov rcx, qword [rsi]
sub r8, rax
mov qword [rsi + 0x10], r8
lea r8, [r8*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.14001bb50
mov r8, qword [rsi + 0x10]
lea r9, [r8 - 1]
cmp r8, r9
jb 0x140015e4e
mov rax, r8
sub rax, r9
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140015ccb
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.14001bb50
cmp qword [rsi + 0x18], 8
jb 0x140015cf4
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 [0x14004dce8]
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 0x140015d6b
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 0x140015db7
mov rdx, r14
mov rcx, rbx
call fcn.14000d0c0
mov rdx, qword [rsp + 0xc0]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140015daf
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015e54
mov rcx, rbx
call fcn.140019b64
inc r15d
xor esi, esi
jmp 0x140015b30
test rdi, rdi
je 0x140015e07
mov rdx, r12
mov rcx, rdi
call fcn.14000d0c0
mov rdx, qword [rsp + 0x70]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140015dfe
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015e5a
mov rcx, rdi
call fcn.140019b64
nop
jmp 0x140015e0e
mov qword [0x14004dcf0], r13
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140019b40
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.1400219a8
nop
call fcn.1400219a8
nop
call fcn.140018ba0
nop
call fcn.1400219a8
nop
call fcn.1400219a8
int3