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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
lea rax, [rsp + 0x78]
xor edi, edi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupComponent_Categories00021493_0000_0000_C000_000000000046
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov rbx, rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180065bc8
mov rbx, qword [rsp + 0x78]
cmp byte [0x180142d29], dil
jne 0x180065b91
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180065b81
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180142d29], 1
mov qword [0x180142d30], rax
jmp 0x180065b98
mov rax, qword [0x180142d30]
mov byte [0x180142d29], 1
jmp 0x180065b98
mov rax, qword [0x180142d30]
lea rdx, str.Enum
mov rcx, rbx
test rax, rax
je 0x180065bb1
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180065bb7
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x180065bc8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
lea rax, [rsp + 0x80]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupComponent_Categories00021494_0000_0000_C000_000000000046
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180065ca4
mov eax, edi
test rbx, rbx
je 0x180065c12
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x80]
test eax, eax
jne 0x180065ca4
cmp byte [0x180142d29], dil
jne 0x180065c6d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180065c5d
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180142d29], 1
mov qword [0x180142d30], rax
jmp 0x180065c74
mov rax, qword [0x180142d30]
mov byte [0x180142d29], 1
jmp 0x180065c74
mov rax, qword [0x180142d30]
lea rdx, str.Enum
mov rcx, rbx
test rax, rax
je 0x180065c8d
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180065c93
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x180065ca4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerToolbar
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x70]
lea rdx, [0x180100260]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x180142f20]
mov edx, 1
call fcn.180066580
mov esi, eax
test eax, eax
jns 0x180065d41
test rbx, rbx
je 0x180065d37
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [0x1801408f0]
mov rax, qword [rax + 8]
cmp qword [rax], rdi
je 0x180065d57
mov rax, qword [rax]
mov rdi, qword [rax]
mov rcx, qword [0x180142df0]
lea rdx, [0x1801408f0]
mov r8, rdi
call qword [sym.imp.RPCRT4.dll_NdrDllRegisterProxy]
mov edi, eax
test rbx, rbx
je 0x180065d7e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret