Function at 0x140004f3c
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 [0x140015010]
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 0x1400052e5
test rdx, rdx
je 0x1400052e5
test r8, r8
je 0x1400052e5
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.140001b44
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea rcx, [rsp + 0x78]
test eax, eax
je 0x140005009
mov r12, 0xffffffff80000003
lea rdx, str.USERS_
call fcn.140006558
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140006558
lea rcx, [rbp - 0x68]
lea rdx, [0x14000c9cc]
jmp 0x140005017
mov r12, 0xffffffff80000001
lea rdx, str.CURRENT_USER_
call fcn.140006558
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea rcx, [rbp - 0x68]
call fcn.140006558
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140006558
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 0x14000508e
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 0x1400050a2
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1400079f8
xor edi, edi
lea rdx, [0x14000e3f0]
lea rcx, [rsp + 0x78]
call fcn.140006558
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 0x140005198
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 0x140005183
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 0x1400052a9
mov qword [rsp + 0x50], rdi
lea rdx, [0x14000e3f0]
lea rcx, [rbp - 0x68]
call fcn.140006558
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 0x1400052a9
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140005229
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 0x140005230
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 0x14000529e
inc rbx
cmp word [r15 + rbx*2], di
jne 0x140005266
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 0x1400052cd
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x78]
call fcn.140006664
nop
lea rcx, [rbp - 0x68]
call fcn.140006664
mov eax, esi
jmp 0x1400052e7
xor eax, eax
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.14000a970
mov rbx, qword [rsp + 0x928]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret