Function at 0x14009c190
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x1405d4300]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x28], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0xe0]
call fcn.14008f050
nop
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0xe0]
call fcn.140091740
mov eax, 4
mov eax, eax
mov ecx, dword [0x1405d5b6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1405d5100], eax
jle 0x14009c24a
lea rcx, [0x1405d5100]
call fcn.1401dd358
cmp dword [0x1405d5100], 0xffffffff
jne 0x14009c24a
lea rcx, [0x1401e0f20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnloadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405d50f8], rax
lea rcx, [0x1405d5100]
call fcn.1401dd2ec
cmp qword [0x1405d50f8], 0
je 0x14009c4d2
lea rcx, [rsp + 0xe0]
call fcn.140095da0
mov rdx, rax
lea rcx, [rsp + 0x100]
call sub.ntdll.dll_RtlInitAnsiString
mov r8b, 1
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x110]
call sub.ntdll.dll_RtlAnsiStringToUnicodeString
mov rax, qword [0x1405d50f8]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x110]
call qword [rsp + 0x38]
test eax, eax
jne 0x14009c2b0
mov byte [rsp + 0x20], 1
jmp 0x14009c2b5
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0xb8]
call fcn.14009bd00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x26]
call fcn.14007b190
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.14008e2d0
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x120]
call fcn.14008a260
nop
lea rcx, [rsp + 0x78]
call fcn.140090a30
nop
lea rax, [rsp + 0xb8]
mov rcx, rax
call fcn.140090a70
mov eax, 4
mov eax, eax
mov ecx, dword [0x1405d5b6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1405d50e0], eax
jle 0x14009c3b1
lea rcx, [0x1405d50e0]
call fcn.1401dd358
cmp dword [0x1405d50e0], 0xffffffff
jne 0x14009c3b1
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x1405d50c0]
call fcn.14008f050
lea rcx, [0x1401df2e0]
call fcn.1401dd298
nop
lea rcx, [0x1405d50e0]
call fcn.1401dd2ec
lea rcx, [0x1405d50c0]
call fcn.140095da0
lea r8, [rsp + 0xd8]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x160]
call fcn.140095da0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x14009c428
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14009c428
mov dword [rsp + 0x2c], 1
jmp 0x14009c430
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x23], al
xor r8d, r8d
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x98]
call fcn.14008a1b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x98]
call fcn.14009aab0
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x27], al
lea rax, [rsp + 0x98]
mov rcx, rax
call fcn.140090a70
nop
jmp 0x14009c483
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14009c49f
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14009c49f
mov dword [rsp + 0x30], 1
jmp 0x14009c4a7
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x120]
call fcn.140090a30
nop
lea rcx, [rsp + 0xe0]
call fcn.140090a30
movzx eax, byte [rsp + 0x24]
jmp 0x14009c4e9
mov byte [rsp + 0x25], 0
lea rcx, [rsp + 0xe0]
call fcn.140090a30
movzx eax, byte [rsp + 0x25]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1401dd5d0
add rsp, 0x158
ret