Function at 0x1400dfcd7
Capabilities:
Delete registry key

Disassembly:
jmp 0x140130800
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x14031b128]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x14033e6b6]
call fcn.1400e23ba
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140130868
xor al, al
jmp 0x140130ad3
mov r8, qword [rbp + 0x3b0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.1400e2ba3
nop
lea rcx, [rbp + 0x28]
call fcn.1400de224
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1400e1fd7
mov r8, qword [rbp + 0x3b0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.1400e2ba3
nop
lea rcx, [rbp + 0xb8]
call fcn.1400de224
lea r8, [rbp + 0x98]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14013093d
cmp dword [rbp + 0xf4], 2
jne 0x140130914
mov byte [rbp + 0x2d4], 1
lea rcx, [rbp + 0xb8]
call fcn.1400e1483
nop
lea rcx, [rbp + 0x28]
call fcn.1400e1483
movzx eax, byte [rbp + 0x2d4]
jmp 0x140130ad3
mov byte [rbp + 0x2f4], 0
lea rcx, [rbp + 0xb8]
call fcn.1400e1483
nop
lea rcx, [rbp + 0x28]
call fcn.1400e1483
movzx eax, byte [rbp + 0x2f4]
jmp 0x140130ad3
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x368], rax
lea rcx, [rbp + 0x68]
call qword [rbp + 0x368]
mov dword [rbp + 0x134], eax
lea rdx, str.___NtUnloadDriver_Status_0x
lea rcx, [0x140320be0]
call fcn.1400df570
mov qword [rbp + 0x368], rax
lea rdx, [0x1400e1ab4]
mov rcx, qword [rbp + 0x368]
call fcn.1400dff0c
mov qword [rbp + 0x370], rax
mov edx, dword [rbp + 0x134]
mov rcx, qword [rbp + 0x370]
call fcn.1400dd7b1
mov qword [rbp + 0x378], rax
lea rdx, [0x1400df04d]
mov rcx, qword [rbp + 0x378]
call fcn.1400e0e07
cmp dword [rbp + 0x134], 0
je 0x140130a5e
lea rdx, str.____Driver_Unload_Failed__
lea rcx, [0x140320be0]
call fcn.1400df570
mov qword [rbp + 0x368], rax
lea rdx, [0x1400df04d]
mov rcx, qword [rbp + 0x368]
call fcn.1400e0e07
lea rcx, [rbp + 0xb8]
call fcn.1400de224
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x314], 0
lea rcx, [rbp + 0xb8]
call fcn.1400e1483
nop
lea rcx, [rbp + 0x28]
call fcn.1400e1483
movzx eax, byte [rbp + 0x314]
jmp 0x140130ad3
lea rcx, [rbp + 0xb8]
call fcn.1400de224
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x140130aaf
mov byte [rbp + 0x334], 0
lea rcx, [rbp + 0xb8]
call fcn.1400e1483
nop
lea rcx, [rbp + 0x28]
call fcn.1400e1483
movzx eax, byte [rbp + 0x334]
jmp 0x140130ad3
mov byte [rbp + 0x354], 1
lea rcx, [rbp + 0xb8]
call fcn.1400e1483
nop
lea rcx, [rbp + 0x28]
call fcn.1400e1483
movzx eax, byte [rbp + 0x354]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402c43c0]
call fcn.1400e1203
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.1400df002
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret