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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r15, r8
mov r14, rdx
mov rbx, rcx
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x50], r12d
test rcx, rcx
je 0x140003fa9
test rdx, rdx
je 0x140003fa9
test r8, r8
je 0x140003fa9
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x58], r12
lea edi, [r12 + 7]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
lea rcx, [rbp - 0x40]
call fcn.140001af0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea rcx, [rsp + 0x78]
test eax, eax
je 0x140003ccd
mov r12, 0xffffffff80000003
lea rdx, str.USERS_
call fcn.14000521c
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.14000521c
lea rcx, [rbp - 0x68]
lea rdx, [0x14000b96c]
jmp 0x140003cdb
mov r12, 0xffffffff80000001
lea rdx, str.CURRENT_USER_
call fcn.14000521c
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea rcx, [rbp - 0x68]
call fcn.14000521c
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14000521c
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x58]
mov r13, qword [rbp - 0x78]
mov rax, qword [rbp - 0x70]
sub rax, r13
cmp rdi, rax
ja 0x140003d52
lea rax, [rdi + r13]
mov qword [rbp - 0x78], rax
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
lea rcx, [rbx + r13*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + r13]
xor edi, edi
mov word [rbx + rax*2], di
jmp 0x140003d66
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140005f70
xor edi, edi
lea rdx, [0x14000cbe0]
lea rcx, [rsp + 0x78]
call fcn.14000521c
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea r13d, [rbx - 3]
test eax, eax
jne 0x140003e5c
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.UserChoice
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003e47
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
lea rdx, str.UserChoice
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmovne ecx, r13d
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], edi
jne 0x140003f6d
mov qword [rsp + 0x50], rdi
lea rdx, [0x14000cbe0]
lea rcx, [rbp - 0x68]
call fcn.14000521c
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003f6d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140003eed
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [r14 + rax*2], di
jne 0x140003ef4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, r13d
xor r8d, r8d
lea rdx, str.Progid
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003f62
inc rbx
cmp word [r15 + rbx*2], di
jne 0x140003f2a
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, r13d
xor r8d, r8d
lea rdx, str.Hash
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rsp + 0x50]
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]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003f91
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x78]
call fcn.140005328
nop
lea rcx, [rbp - 0x68]
call fcn.140005328
mov eax, esi
jmp 0x140003fab
xor eax, eax
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140008c70
mov rbx, qword [rsp + 0x928]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret