Function at 0x140074670
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 [0x140111080]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x28], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x198]
call fcn.14008aa80
nop
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x198]
call fcn.14008a740
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401152a8], eax
jle 0x140074725
lea rcx, [0x1401152a8]
call fcn.1400c2f40
cmp dword [0x1401152a8], 0xffffffff
jne 0x140074725
lea rcx, [0x1400fedf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnloadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401151b8], rax
lea rcx, [0x1401152a8]
call fcn.1400c2ed4
cmp qword [0x1401151b8], 0
je 0x140074be1
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], 0xf
jbe 0x140074760
mov dword [rsp + 0x30], 1
jmp 0x140074768
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140074797
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 [0x1401151b8]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x1c8]
call qword [rsp + 0xa0]
test eax, eax
jne 0x14007480c
mov byte [rsp + 0x20], 1
jmp 0x140074811
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x170]
call fcn.140074490
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.140089e50
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.140097d10
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.14008a740
mov rdx, rax
lea rcx, [rsp + 0x1d8]
call fcn.14008a950
mov eax, dword [rsp + 0x28]
or eax, 8
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x140]
call fcn.14008d030
nop
lea rax, [rsp + 0x170]
mov rcx, rax
call fcn.14008cae0
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140114ef4], eax
jle 0x1400749f6
lea rcx, [0x140114ef4]
call fcn.1400c2f40
cmp dword [0x140114ef4], 0xffffffff
jne 0x1400749f6
lea rax, [0x140114f28]
mov qword [rsp + 0xd0], rax
movzx edx, byte [rsp + 0x2d]
mov rcx, qword [rsp + 0xd0]
call fcn.140094980
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 0x14007498c
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, [0x140114f28]
call fcn.140094ca0
nop
lea rcx, [0x1400f1bb0]
call fcn.1400c321c
nop
lea rcx, [0x140114ef4]
call fcn.1400c2ed4
lea rax, [0x140114f28]
mov rcx, rax
call fcn.14008dfc0
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], 0xf
jbe 0x140074a68
mov dword [rsp + 0x34], 1
jmp 0x140074a70
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140074a9f
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 0x140074afc
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140074afc
mov dword [rsp + 0x38], 1
jmp 0x140074b04
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.140097e50
nop
lea rcx, [rsp + 0x120]
call fcn.140073400
mov rcx, rax
call fcn.14009bacc
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x5c], 0
je 0x140074b76
lea r8, [rsp + 0x120]
mov edx, dword [rsp + 0x5c]
lea rcx, str.remove
call fcn.140073ca0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x2e], al
lea rax, [rsp + 0x120]
mov rcx, rax
call fcn.14008cae0
nop
jmp 0x140074b92
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140074bae
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x140074bae
mov dword [rsp + 0x3c], 1
jmp 0x140074bb6
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x26], al
lea rcx, [rsp + 0x1d8]
call fcn.14008d030
nop
lea rcx, [rsp + 0x198]
call fcn.14008d030
movzx eax, byte [rsp + 0x26]
jmp 0x140074bf8
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x198]
call fcn.14008d030
movzx eax, byte [rsp + 0x27]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400c2e70
add rsp, 0x218
pop rdi
pop rsi
ret