Function at 0x14000a810
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
mov rdx, rcx
lea r8, [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov edi, eax
je 0x14000a876
lea rcx, str.Unable_to_open_safe_boot_key__S:__u_n
mov r8d, eax
mov rdx, rbx
call fcn.1400154e0
lea rcx, str.Unable_to_open_safe_boot_key__S:__u_n
mov r8d, edi
mov rdx, rbx
call fcn.14004d888
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
je 0x14000a8d5
cmp eax, 2
je 0x14000a8b8
lea rcx, str.Unable_to_open_driver_key__S:__u_n
mov r8d, eax
mov rdx, rsi
call fcn.1400154e0
lea rcx, str.Unable_to_open_driver_key__S:__u_n
mov r8d, ebx
mov rdx, rsi
call fcn.14004d888
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor edi, edi
lea rcx, str..WGUARDNT
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x14000a948
mov qword [rsp + 0x30], rdi
lea rcx, str..GlobalWGUARDNT
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x14000a948
mov rbx, rdi
jmp 0x14000a97f
test rbx, rbx
je 0x14000a97f
cmp rbx, 0xffffffffffffffff
je 0x14000a97f
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x9edb6510
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14000a99e
lea rcx, str.Unable_to_delete_driver_value:__u_n
mov edx, eax
call fcn.1400154e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14000a9bd
cmp rbx, 0xffffffffffffffff
je 0x14000a9bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
lea rcx, str..WGUARDNT
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x14000aa2e
mov qword [rsp + 0x30], rdi
lea rcx, str..GlobalWGUARDNT
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x14000aa2e
mov rbx, rdi
jmp 0x14000aa65
test rbx, rbx
je 0x14000aa65
cmp rbx, 0xffffffffffffffff
je 0x14000aa65
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x9edb6510
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000aa85
lea rcx, str.Unable_to_delete_driver_key:__u_n
mov edx, eax
call fcn.1400154e0
test rbx, rbx
je 0x14000aa99
cmp rbx, 0xffffffffffffffff
je 0x14000aa99
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, 1
add rsp, 0x50
pop rdi
ret