Function at 0x140015dc0
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 [0x140040468]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, qword [0x1400416c8]
mov qword [0x1400416c8], 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.14000ce60
nop
lea rcx, [rbp - 0x39]
call fcn.14000cb00
mov rbx, qword [rbp - 0x31]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
test rbx, rbx
je 0x140015e85
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x140015e9d
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
movabs r14, 0x6666666666666667
mov rdi, qword [rbp - 0x39]
cmp rax, rbx
jae 0x140015f58
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x140015f58
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 0x140015f21
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x140015f56
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.14000c9d0
nop
jmp 0x140015fa7
mov rsi, qword [rbp - 0x29]
cmp rbx, rsi
jne 0x140015f76
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x140015fa7
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x140015fbf
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x140016068
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x140016068
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 0x140016031
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x140016066
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.14000c9d0
nop
jmp 0x1400160b3
cmp rbx, rsi
jne 0x140016082
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x1400160b3
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400160cb
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x140016174
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x140016174
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 0x14001613d
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x140016172
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.14000c9d0
nop
jmp 0x1400161bf
cmp rbx, rsi
jne 0x14001618e
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x1400161bf
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400161d7
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x140016280
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x140016280
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 0x140016249
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x14001627e
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.14000c9d0
nop
jmp 0x1400162cb
cmp rbx, rsi
jne 0x14001629a
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x1400162cb
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400162e3
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x14001638c
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x14001638c
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 0x140016355
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x14001638a
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.14000c9d0
nop
jmp 0x1400163d7
cmp rbx, rsi
jne 0x1400163a6
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x1400163d7
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400163ef
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x140016498
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x140016498
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 0x140016461
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x140016496
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.14000c9d0
nop
jmp 0x1400164e3
cmp rbx, rsi
jne 0x1400164b2
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x1400164e3
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400164fb
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rax, [rbp + 7]
cmp rax, rbx
jae 0x1400165a0
lea rax, [rbp + 7]
cmp rdi, rax
ja 0x1400165a0
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 0x140016569
lea rcx, [rbp - 0x39]
call fcn.14000cb00
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 0x14001659e
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.14000c9d0
nop
jmp 0x1400165e3
cmp rbx, rsi
jne 0x1400165b2
lea rcx, [rbp - 0x39]
call fcn.14000cb00
mov rbx, qword [rbp - 0x31]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x1400165e3
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.14000c9d0
nop
add rbx, 0x28
mov qword [rbp - 0x31], rbx
cmp qword [rbp + 0x1f], 8
jb 0x1400165fb
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x140016641
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x140016687
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400166cd
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x140016713
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x140016759
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x14001679f
mov rcx, qword [rbp + 7]
call fcn.14001a248
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.14000ce60
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000c850
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400167e5
mov rcx, qword [rbp + 7]
call fcn.14001a248
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 0x1400168c2
mov rbx, r12
nop
cmp qword [rbx + 0x18], 8
jb 0x14001683c
mov rsi, qword [rbx]
jmp 0x14001683f
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 [0x1400418d8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x1400416c8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400168b1
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 0x140016830
mov qword [0x1400416c8], r15
test r12, r12
je 0x1400168e1
mov rdx, r14
mov rcx, r12
call fcn.14000d3b0
mov rcx, r12
call fcn.14001a248
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140019650
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