Function at 0x140071e10
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
movzx r12d, cl
xor ebx, ebx
call fcn.1400301a0
movzx r15d, al
shl r15d, 8
add r15d, 0x20006
mov edi, r15d
or edi, 0x20019
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov qword [rbp - 0x40], rbx
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREClientsMediaWindows_Media_CenterInstallInfo
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140071eb4
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140071ea3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x50], rax
and edi, 0x300
mov dword [rbp - 0x48], edi
lea rax, str.ShowIconsCommand
lea r8, str.HideIconsCommand
test r12b, r12b
cmovne r8, rax
lea r9, [0x1400c5494]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140029c70
nop
mov r14d, 0xffffffff
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], 0
jle 0x140072110
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp - 0x58], rax
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp - 0x60], rax
call fcn.140002000
mov r11, rax
mov rcx, qword [rsp + 0x70]
cmp dword [rcx - 0x10], 0
jg 0x140071f36
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
jmp 0x140071f9d
mov eax, dword [rcx - 8]
cmp eax, 0xffffffff
jne 0x140071f64
mov rdx, qword [rsp + 0x70]
mov rax, qword [r11]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, r14d
mov r8d, dword [rdx - 0x10]
mov rcx, r11
call qword [rax + 0x28]
jmp 0x140071f9d
mov rax, qword [rsp + 0x70]
cmp r11, qword [rax - 0x18]
je 0x140071f94
mov r10, qword [r11]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, r14d
mov r8d, dword [rax - 0x10]
mov rdx, rax
mov rcx, r11
call qword [r10 + 0x28]
jmp 0x140071f9d
lock inc dword [rax - 8]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400270d0
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], r14d
mov qword [rbp - 0x68], rbx
lea rax, vtable.JRStringArray.0
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000bec0
mov byte [rsp + 0x68], 1
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8b, 1
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.140026140
nop
lea rax, vtable.JRCoreArray_class_JRString__class_JRString_const____ptr64__0_.0
mov qword [rbp - 0x80], rax
cmp qword [rbp - 0x68], 0
je 0x1400720ab
mov edi, ebx
cmp dword [rbp - 0x78], ebx
jle 0x14007209b
mov rsi, rbx
lea r13, [fcn.1400022d0]
mov rax, qword [rax + 0x10]
cmp rax, r13
je 0x140072055
mov edx, edi
lea rcx, [rbp - 0x80]
call rax
mov rax, qword [rbp - 0x68]
mov rdx, qword [rsi + rax]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14007208a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140072080
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007208a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
inc edi
add rsi, 8
cmp edi, dword [rbp - 0x78]
jge 0x14007209b
mov rax, qword [rbp - 0x80]
jmp 0x140072044
mov rcx, qword [rbp - 0x68]
call fcn.14008d9d8
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x74], ebx
mov dword [rbp - 0x78], ebx
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400720df
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400720d5
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400720df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140072110
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140072106
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140072110
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140072144
mov dword [rbp + 0x50], r12d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.IconsVisible
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rsi, rbx
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x38], rbx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREClientsMediaWindows_Media_CenterCapabilities
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, r15d
and edi, 0x300
test eax, eax
jne 0x1400721a4
mov rsi, qword [rbp - 0x38]
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], edi
test rsi, rsi
je 0x1400721dc
mov eax, r12d
xor eax, 1
mov dword [rbp + 0x58], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Hidden
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], ebx
mov qword [rbp - 0x30], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerRemoveAccess
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140072230
mov rbx, qword [rbp - 0x30]
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], edi
test rbx, rbx
je 0x140072285
test r12b, r12b
je 0x14007224c
lea rdx, str.EHomeMCE
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140072285
lea rdi, str._windir_ehomeehshell.exe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.EHomeMCE
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.1400719f0
movzx edi, al
xor dil, r12b
xor dil, 1
test rbx, rbx
je 0x1400722a3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x1400722b2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400722e4
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400722d9
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400722e4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400722f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret