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

Disassembly:
sub rsp, 0x68
mov eax, dword [0x180144198]
cmp eax, 0x80004001
je 0x18006779c
mov eax, dword [0x180144198]
add rsp, 0x68
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
xor edi, edi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupComponent_Categories00021493_0000_0000_C000_000000000046
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov rbx, rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180067875
mov rbx, qword [rsp + 0x78]
cmp byte [0x180146d29], dil
jne 0x180067834
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180067824
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180146d29], 1
mov qword [0x180146d30], rax
jmp 0x18006783b
mov rax, qword [0x180146d30]
mov byte [0x180146d29], 1
jmp 0x18006783b
mov rax, qword [0x180146d30]
test rax, rax
je 0x180067854
lea rdx, str.Enum
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call rax
jmp 0x180067864
lea rdx, str.Enum
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x180067875
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 0x18006795b
mov eax, edi
test rbx, rbx
je 0x1800678bf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x80]
test eax, eax
jne 0x18006795b
cmp byte [0x180146d29], dil
jne 0x18006791a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18006790a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180146d29], 1
mov qword [0x180146d30], rax
jmp 0x180067921
mov rax, qword [0x180146d30]
mov byte [0x180146d29], 1
jmp 0x180067921
mov rax, qword [0x180146d30]
test rax, rax
je 0x18006793a
lea rdx, str.Enum
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call rax
jmp 0x18006794a
lea rdx, str.Enum
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x18006795b
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, [0x180103280]
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, [0x180146f20]
mov edx, 1
call fcn.180068400
mov esi, eax
test eax, eax
jns 0x180067a04
test rbx, rbx
je 0x1800679ee
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x68
ret
mov rax, qword [0x180144900]
mov rax, qword [rax + 8]
cmp qword [rax], rdi
je 0x180067a1a
mov rax, qword [rax]
mov rdi, qword [rax]
mov rcx, qword [0x180146df0]
lea rdx, [0x180144900]
mov r8, rdi
call qword [sym.imp.RPCRT4.dll_NdrDllRegisterProxy]
mov edi, eax
mov dword [0x180144198], eax
test rbx, rbx
je 0x180067a47
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x68
ret