Function at 0x1017588
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 0x10175d8
mov rdx, qword [r8]
lea rcx, [0x01009b30]
call fcn.01011d38
jmp 0x101761b
cmp rdx, 0xffffffff80000002
jne 0x10175f2
mov rdx, qword [r8]
lea rcx, [0x01009bc0]
call fcn.01011d38
jmp 0x101761b
cmp rdx, 0xffffffff80000003
jne 0x101760c
mov rdx, qword [r8]
lea rcx, [0x01009c50]
call fcn.01011d38
jmp 0x101761b
mov r8, qword [r8]
lea rcx, [0x01009cd0]
call fcn.01011d38
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.01020df8
nop
lea r14d, [r13 + 1]
lea r15, [0x0100d8d8]
cmp dword [rsp + 0x60], r13d
je 0x10179b9
mov rax, qword [0x01045880]
mov qword [rsp + 0x128], rax
mov esi, r13d
lea rdx, [0x01005540]
lea rcx, [rsp + 0x40]
call fcn.0100f9f8
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.01020fcc
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.0100faec
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 0x10176bf
add rcx, 2
test eax, eax
jne 0x10176ab
movzx ebx, r13b
cmp edx, r13d
cmovne ebx, r14d
lea rcx, [rsp + 0x88]
call fcn.0100f940
lea rcx, [rsp + 0x40]
call fcn.0100f940
cmp bl, r13b
je 0x10179aa
mov rdx, qword [rsp + 0x128]
lea rcx, [0x01009d50]
call fcn.01011d38
mov r11, qword [0x01045880]
mov qword [rsp + 0x30], r11
mov r9, qword [rsp + 0x128]
mov r8, qword [rdi]
lea rdx, [0x01009db8]
lea rcx, [rsp + 0x30]
call fcn.01010648
mov rdx, qword [rsp + 0x30]
lea rcx, [0x01009dd0]
call fcn.01011d38
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.01020df8
nop
cmp dword [rsp + 0x80], r13d
je 0x101797c
mov rax, qword [0x01045880]
mov qword [rsp + 0x38], rax
lea rdx, [0x01005540]
lea rcx, [rsp + 0x48]
call fcn.0100f9f8
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x48]
lea r8, [0x01009e38]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.01021270
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.0100faec
lea rcx, [rsp + 0x68]
call fcn.0100f940
nop
lea rcx, [rsp + 0x48]
call fcn.0100f940
lea rcx, [rsp + 0x70]
call fcn.01020f9c
mov rbx, qword [rsp + 0x38]
cmp qword [rbx - 0x10], r13
je 0x101796d
mov rdx, rbx
lea rcx, [0x01009e50]
call fcn.01011d38
mov r11, qword [r12]
mov rdx, rbx
sub rdx, r11
movzx eax, word [r11]
movzx ecx, word [r11 + rdx]
sub eax, ecx
jne 0x1017812
add r11, 2
test ecx, ecx
jne 0x10177fd
cmp eax, r13d
jne 0x101795c
lea rcx, [0x01009ec0]
call fcn.01011d38
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x01009f90]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0xc0]
call fcn.01020df8
nop
cmp dword [rsp + 0xd0], r13d
je 0x101786e
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, [0x01009f90]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xa8]
call fcn.01020df8
nop
cmp dword [rsp + 0xb8], r13d
je 0x10178b5
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, [0x01009f90]
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.01020df8
nop
cmp dword [rsp + 0xa0], r13d
je 0x10178f8
mov rdx, rbx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [rsp + 0x60], r13d
je 0x1017916
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x50]
call fcn.01021110
cmp eax, r13d
jne 0x1017919
add esi, r14d
mov qword [rsp + 0x90], r15
lea rcx, [rsp + 0x90]
call fcn.01020f9c
nop
mov qword [rsp + 0xa8], r15
lea rcx, [rsp + 0xa8]
call fcn.01020f9c
nop
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.01020f9c
jmp 0x1017970
lea rcx, [0x01009f20]
call fcn.01011d38
add esi, r14d
jmp 0x1017970
add esi, r14d
lea rcx, [rsp + 0x38]
call fcn.0100f940
jmp 0x101798b
lea rcx, [0x01009ff0]
call fcn.01011d38
add esi, r14d
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x70]
call fcn.01020f9c
nop
lea rcx, [rsp + 0x30]
call fcn.0100f940
jmp 0x1017667
lea rcx, [rsp + 0x128]
call fcn.0100f940
jmp 0x10179c5
lea rcx, [0x0100a060]
call fcn.01011d38
lea rcx, [0x0100a0d0]
call fcn.01011d38
nop
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call fcn.01020f9c
nop
mov rcx, rdi
call fcn.0100f940
nop
mov rcx, r12
call fcn.0100f940
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