Function at 0x14014a440
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x218
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x28], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x198]
call fcn.140164050
nop
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x198]
call fcn.140163d10
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f52e8], eax
jle 0x14014a4f5
lea rcx, [0x1401f52e8]
call fcn.14019e160
cmp dword [0x1401f52e8], 0xffffffff
jne 0x14014a4f5
lea rcx, [0x1401df180]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnloadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401f51f8], rax
lea rcx, [0x1401f52e8]
call fcn.14019e100
cmp qword [0x1401f51f8], 0
je 0x14014a9b1
lea rax, [rsp + 0x198]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0x10
jb 0x14014a530
mov dword [rsp + 0x30], 1
jmp 0x14014a538
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14014a567
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x1401f51f8]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x1c8]
call qword [rsp + 0xa0]
test eax, eax
jne 0x14014a5dc
mov byte [rsp + 0x20], 1
jmp 0x14014a5e1
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x170]
call fcn.14014a260
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0xc0]
call fcn.140163410
lea rcx, [rsp + 0x110]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x140]
call fcn.1401715a0
mov eax, dword [rsp + 0x28]
or eax, 4
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x140]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0x230]
mov rcx, qword [rsp + 0xc8]
call fcn.140163d10
mov rdx, rax
lea rcx, [rsp + 0x1d8]
call fcn.140163f20
mov eax, dword [rsp + 0x28]
or eax, 8
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x140]
call fcn.140166640
nop
lea rax, [rsp + 0x170]
mov rcx, rax
call fcn.140166100
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f4f0c], eax
jle 0x14014a7c6
lea rcx, [0x1401f4f0c]
call fcn.14019e160
cmp dword [0x1401f4f0c], 0xffffffff
jne 0x14014a7c6
lea rax, [0x1401f4f40]
mov qword [rsp + 0xd0], rax
movzx edx, byte [rsp + 0x2d]
mov rcx, qword [rsp + 0xd0]
call fcn.14016d830
nop
lea rax, str.SystemCurrentControlSetServices_
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x14014a75c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xe8]
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x1401f4f40]
call fcn.14016e380
nop
lea rcx, [0x1401cea30]
call fcn.14019e4e4
nop
lea rcx, [0x1401f4f0c]
call fcn.14019e100
lea rax, [0x1401f4f40]
mov rcx, rax
call fcn.140167600
mov qword [rsp + 0xf0], rax
lea r8, [rsp + 0x190]
mov rdx, qword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0x10
jb 0x14014a838
mov dword [rsp + 0x34], 1
jmp 0x14014a840
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14014a86f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x14014a8cc
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14014a8cc
mov dword [rsp + 0x38], 1
jmp 0x14014a8d4
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x25], al
lea rax, [rsp + 0x23]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
movzx r8d, byte [rsp + 0x23]
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.1401716e0
nop
lea rcx, [rsp + 0x120]
call fcn.140149330
mov rcx, rax
call fcn.1401751e8
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x5c], 0
je 0x14014a946
lea r8, [rsp + 0x120]
mov edx, dword [rsp + 0x5c]
lea rcx, str.remove
call fcn.140149bb0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x2e], al
lea rax, [rsp + 0x120]
mov rcx, rax
call fcn.140166100
nop
jmp 0x14014a962
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14014a97e
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x14014a97e
mov dword [rsp + 0x3c], 1
jmp 0x14014a986
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x26], al
lea rcx, [rsp + 0x1d8]
call fcn.140166640
nop
lea rcx, [rsp + 0x198]
call fcn.140166640
movzx eax, byte [rsp + 0x26]
jmp 0x14014a9c8
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x198]
call fcn.140166640
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0x218
pop rdi
pop rsi
ret