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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, qword [0x1400446c8]
mov qword [0x1400446c8], 0xffffffff80000002
mov dword [rbp - 9], 1
xor r13d, r13d
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], r13
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
lea r8d, [r13 + 0x26]
lea rdx, str.00001104_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rbx, qword [rbp - 0x31]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
test rbx, rbx
je 0x140016fd5
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x140016fed
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001105_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
movabs r14, 0x6666666666666667
mov rdi, qword [rbp - 0x39]
cmp rax, rbx
jae 0x1400170a8
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400170a8
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
mov rsi, qword [rbp - 0x29]
cmp rbx, rsi
jne 0x140017071
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400170a6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x1400170f7
mov rsi, qword [rbp - 0x29]
cmp rbx, rsi
jne 0x1400170c6
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400170f7
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x14001710f
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001106_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400171b8
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400171b8
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x140017181
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400171b6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x140017203
cmp rbx, rsi
jne 0x1400171d2
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140017203
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x14001721b
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000110c_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400172c4
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400172c4
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x14001728d
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400172c2
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x14001730f
cmp rbx, rsi
jne 0x1400172de
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x14001730f
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x140017327
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000110e_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400173d0
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400173d0
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x140017399
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400173ce
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x14001741b
cmp rbx, rsi
jne 0x1400173ea
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x14001741b
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x140017433
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001111_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400174dc
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400174dc
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x1400174a5
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400174da
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x140017527
cmp rbx, rsi
jne 0x1400174f6
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140017527
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x14001753f
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001118_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400175e8
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400175e8
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x1400175b1
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400175e6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x140017633
cmp rbx, rsi
jne 0x140017602
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140017633
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x14001764b
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001123_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400176f0
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400176f0
lea rcx, [rbp + 7]
sub rcx, rdi
mov rax, r14
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
cmp rbx, rsi
jne 0x1400176b9
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400176ee
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000d490
nop
jmp 0x140017733
cmp rbx, rsi
jne 0x140017702
lea rcx, [rbp - 0x39]
call fcn.14000d5c0
mov rbx, qword [rbp - 0x31]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140017733
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000d490
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x14001774b
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000110a_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x140017791
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001303_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400177d7
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001304_0000_1000_8000_00805F9B34FB
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x14001781d
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.00001112_0000_1000_8000_00805f9b34fb
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x140017863
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000112d_0000_1000_8000_00805f9b34fb
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400178a9
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000112e_0000_1000_8000_00805f9b34fb
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400178ef
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov r8d, 0x26
lea rdx, str.0000112f_0000_1000_8000_00805f9b34fb
lea rcx, [rbp + 7]
call fcn.14000d920
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000d310
nop
cmp qword [rbp + 0x1f], 8
jb 0x140017935
mov rcx, qword [rbp + 7]
call fcn.14001b480
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r13
mov word [rbp + 7], r13w
mov edi, r13d
mov r14, qword [rbp - 0x31]
mov rcx, r14
mov r12, qword [rbp - 0x39]
sub rcx, r12
movabs rax, 0x6666666666666667
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
je 0x140017a12
mov rbx, r12
nop
cmp qword [rbx + 0x18], 8
jb 0x14001798c
mov rsi, qword [rbx]
jmp 0x14001798f
mov rsi, rbx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov eax, dword [0x1400446d0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x1400446c8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017a01
mov dword [rsp + 0x28], 4
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add rbx, 0x28
mov eax, edi
cmp rax, r13
jb 0x140017980
mov qword [0x1400446c8], r15
test r12, r12
je 0x140017a31
mov rdx, r14
mov rcx, r12
call fcn.14000de70
mov rcx, r12
call fcn.14001b480
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001a650
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret