Function at 0x1018588
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, r9
mov rdi, r8
mov rbp, rdx
cmp rdx, 0xffffffff80000001
jne 0x10185d8
mov rdx, qword [r8]
lea rcx, [0x0100ab30]
call fcn.01012d38
jmp 0x101861b
cmp rdx, 0xffffffff80000002
jne 0x10185f2
mov rdx, qword [r8]
lea rcx, [0x0100abc0]
call fcn.01012d38
jmp 0x101861b
cmp rdx, 0xffffffff80000003
jne 0x101860c
mov rdx, qword [r8]
lea rcx, [0x0100ac50]
call fcn.01012d38
jmp 0x101861b
mov r8, qword [r8]
lea rcx, [0x0100acd0]
call fcn.01012d38
mov dword [rsp + 0x28], 0xf003f
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8, qword [rdi]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.01021df8
nop
lea r14d, [r13 + 1]
lea r15, [0x0100e8d8]
cmp dword [rsp + 0x60], r13d
je 0x10189b9
mov rax, qword [0x01046880]
mov qword [rsp + 0x128], rax
mov esi, r13d
lea rdx, [0x01006540]
lea rcx, [rsp + 0x40]
call fcn.010109f8
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.01021fcc
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.01010aec
mov rcx, qword [rax]
mov r8, qword [rsp + 0x40]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x10186bf
add rcx, 2
test eax, eax
jne 0x10186ab
movzx ebx, r13b
cmp edx, r13d
cmovne ebx, r14d
lea rcx, [rsp + 0x88]
call fcn.01010940
lea rcx, [rsp + 0x40]
call fcn.01010940
cmp bl, r13b
je 0x10189aa
mov rdx, qword [rsp + 0x128]
lea rcx, [0x0100ad50]
call fcn.01012d38
mov r11, qword [0x01046880]
mov qword [rsp + 0x30], r11
mov r9, qword [rsp + 0x128]
mov r8, qword [rdi]
lea rdx, [0x0100adb8]
lea rcx, [rsp + 0x30]
call fcn.01011648
mov rdx, qword [rsp + 0x30]
lea rcx, [0x0100add0]
call fcn.01012d38
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.01021df8
nop
cmp dword [rsp + 0x80], r13d
je 0x101897c
mov rax, qword [0x01046880]
mov qword [rsp + 0x38], rax
lea rdx, [0x01006540]
lea rcx, [rsp + 0x48]
call fcn.010109f8
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x48]
lea r8, [0x0100ae38]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.01022270
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.01010aec
lea rcx, [rsp + 0x68]
call fcn.01010940
nop
lea rcx, [rsp + 0x48]
call fcn.01010940
lea rcx, [rsp + 0x70]
call fcn.01021f9c
mov rbx, qword [rsp + 0x38]
cmp qword [rbx - 0x10], r13
je 0x101896d
mov rdx, rbx
lea rcx, [0x0100ae50]
call fcn.01012d38
mov r11, qword [r12]
mov rdx, rbx
sub rdx, r11
movzx eax, word [r11]
movzx ecx, word [r11 + rdx]
sub eax, ecx
jne 0x1018812
add r11, 2
test ecx, ecx
jne 0x10187fd
cmp eax, r13d
jne 0x101895c
lea rcx, [0x0100aec0]
call fcn.01012d38
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x0100af90]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0xc0]
call fcn.01021df8
nop
cmp dword [rsp + 0xd0], r13d
je 0x101886e
mov rdx, rbx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x0100af90]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xa8]
call fcn.01021df8
nop
cmp dword [rsp + 0xb8], r13d
je 0x10188b5
mov rdx, rbx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x0100af90]
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.01021df8
nop
cmp dword [rsp + 0xa0], r13d
je 0x10188f8
mov rdx, rbx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [rsp + 0x60], r13d
je 0x1018916
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x50]
call fcn.01022110
cmp eax, r13d
jne 0x1018919
add esi, r14d
mov qword [rsp + 0x90], r15
lea rcx, [rsp + 0x90]
call fcn.01021f9c
nop
mov qword [rsp + 0xa8], r15
lea rcx, [rsp + 0xa8]
call fcn.01021f9c
nop
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.01021f9c
jmp 0x1018970
lea rcx, [0x0100af20]
call fcn.01012d38
add esi, r14d
jmp 0x1018970
add esi, r14d
lea rcx, [rsp + 0x38]
call fcn.01010940
jmp 0x101898b
lea rcx, [0x0100aff0]
call fcn.01012d38
add esi, r14d
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x70]
call fcn.01021f9c
nop
lea rcx, [rsp + 0x30]
call fcn.01010940
jmp 0x1018667
lea rcx, [rsp + 0x128]
call fcn.01010940
jmp 0x10189c5
lea rcx, [0x0100b060]
call fcn.01012d38
lea rcx, [0x0100b0d0]
call fcn.01012d38
nop
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call fcn.01021f9c
nop
mov rcx, rdi
call fcn.01010940
nop
mov rcx, r12
call fcn.01010940
mov eax, r14d
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret