Function at 0x14015bed0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x14074a3c0]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x28], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0xe0]
call fcn.14014d600
nop
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0xe0]
call fcn.1401504c0
mov eax, 4
mov eax, eax
mov ecx, dword [0x14074d7bc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x14074b9a8], eax
jle 0x14015bf8a
lea rcx, [0x14074b9a8]
call fcn.140334f94
cmp dword [0x14074b9a8], 0xffffffff
jne 0x14015bf8a
lea rcx, [0x14033a5a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnloadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14074b9a0], rax
lea rcx, [0x14074b9a8]
call fcn.140334f28
cmp qword [0x14074b9a0], 0
je 0x14015c212
lea rcx, [rsp + 0xe0]
call fcn.140154de0
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 [0x14074b9a0]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x110]
call qword [rsp + gethostname]
test eax, eax
jne 0x14015bff0
mov byte [rsp + 0x20], 1
jmp 0x14015bff5
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0xb8]
call fcn.14015ba40
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.14014d300
mov r8, rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.14014c870
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.140148620
nop
lea rcx, [rsp + 0x78]
call fcn.14014f220
nop
lea rax, [rsp + 0xb8]
mov rcx, rax
call fcn.14014f260
mov eax, 4
mov eax, eax
mov ecx, dword [0x14074d7bc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x14074b988], eax
jle 0x14015c0f1
lea rcx, [0x14074b988]
call fcn.140334f94
cmp dword [0x14074b988], 0xffffffff
jne 0x14015c0f1
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x14074b968]
call fcn.14014d600
lea rcx, [0x140337ec0]
call fcn.140334ed4
nop
lea rcx, [0x14074b988]
call fcn.140334f28
lea rcx, [0x14074b968]
call fcn.140154de0
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.140154de0
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 0x14015c168
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14015c168
mov dword [rsp + 0x2c], 1
jmp 0x14015c170
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.140148570
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x98]
call fcn.14015a7d0
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x27], al
lea rax, [rsp + 0x98]
mov rcx, rax
call fcn.14014f260
nop
jmp 0x14015c1c3
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14015c1df
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14015c1df
mov dword [rsp + 0x30], 1
jmp 0x14015c1e7
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x120]
call fcn.14014f220
nop
lea rcx, [rsp + 0xe0]
call fcn.14014f220
movzx eax, byte [rsp + 0x24]
jmp 0x14015c229
mov byte [rsp + 0x25], 0
lea rcx, [rsp + 0xe0]
call fcn.14014f220
movzx eax, byte [rsp + 0x25]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140335200
add rsp, 0x158
ret