Function at 0x14001af70
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x918
mov rax, qword [0x14008d010]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
cmp qword [rsp + 0x920], 0
je 0x14001afc9
cmp qword [rsp + 0x928], 0
je 0x14001afc9
cmp qword [rsp + 0x930], 0
jne 0x14001afd2
mov eax, dword [rsp + 0x50]
jmp 0x14001b426
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], 0
lea rdx, [0x14002fa34]
lea rcx, [rsp + 0xc0]
call fcn.140009570
nop
mov edx, 0x400
lea rcx, [rsp + 0x100]
call fcn.140019690
mov dword [rsp + 0x68], eax
lea rdx, [0x14002fae4]
lea rcx, [rsp + 0xe0]
call fcn.140009570
nop
cmp dword [rsp + 0x68], 0
je 0x14001b085
mov qword [rsp + 0x70], 0xffffffff80000003
lea rdx, str.USERS_
lea rcx, [rsp + 0xe0]
call fcn.14000d560
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xc0]
call fcn.14000d560
lea rdx, [0x14002fb64]
lea rcx, [rsp + 0xc0]
call fcn.14000d560
jmp 0x14001b0a2
mov qword [rsp + 0x70], 0xffffffff80000001
lea rdx, str.CURRENT_USER_
lea rcx, [rsp + 0xe0]
call fcn.14000d560
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea rcx, [rsp + 0xc0]
call fcn.14000d560
mov rdx, qword [rsp + 0x920]
lea rcx, [rsp + 0xc0]
call fcn.14000d560
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe0]
call fcn.140012ca0
lea rdx, [0x140031948]
lea rcx, [rsp + 0xe0]
call fcn.14000d560
lea rcx, [rsp + 0xc0]
call fcn.140009400
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b1f5
mov qword [rsp + 0xb8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400319f8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b1e7
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0xe0]
call fcn.140009400
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 4
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
lea rdx, [0x140031aa8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14001b1e7
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x54], 0
jne 0x14001b3d3
mov qword [rsp + 0xa0], 0
lea rdx, str.UserChoice
lea rcx, [rsp + 0xc0]
call fcn.14000d560
lea rcx, [rsp + 0xc0]
call fcn.140009400
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001b3d3
cmp qword [rsp + 0xa8], 0
je 0x14001b2df
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140011450
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 4
mov edx, 4
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rax, qword [rsp + 0x928]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x14001b2f8
mov rax, qword [rsp + 0x58]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x928]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Progid
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14001b3c5
mov rax, qword [rsp + 0x930]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x14001b367
mov rax, qword [rsp + 0x60]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x930]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Hash
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14001b3c5
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
cmp qword [rsp + 0xb0], 0
je 0x14001b3ff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0xe0]
call fcn.1400094a0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400094a0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.140020090
add rsp, 0x918
ret