Function at 0x140087420
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rbx, rcx
lea rcx, [0x1401347a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140087861
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x14008787f
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140087484
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x80]
call fcn.140081d40
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x140087885
cmp qword [rbx + 0x18], 7
jbe 0x1400874db
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140081d40
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
lea r8, [rbp + 0x1d8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140087534
cmp eax, 2
sete bl
jmp 0x14008784a
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x60]
call rax
mov ebx, eax
lea rcx, [rbp + 0xc0]
call fcn.140087f60
nop
lea rdx, str.___NtUnloadDriver_Status_0x
lea rcx, [rbp + 0xc0]
call fcn.14006cbd0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.140088080
mov rcx, rax
call fcn.140089870
mov r8d, 1
lea rdx, str.C:_bKernellog.log
lea rcx, [rbp - 0x50]
call fcn.1400779b0
nop
mov rcx, qword [rbp - 0x50]
movsxd rax, dword [rcx + 4]
cmp dword [rbp + rax - 0x40], 0
jne 0x1400875f5
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xc8]
call fcn.1400891d0
nop
lea rcx, [rsp + 0x60]
call fcn.14006d5d0
nop
lea rcx, [rsp + 0x60]
call fcn.14005ed40
mov rcx, qword [rbp - 0x50]
movsxd rax, dword [rcx + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.14005deb0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r9d, [rcx - 0x18]
mov dword [rbp + rcx - 0x54], r9d
lea rdi, vtable.std::ios_base.0
mov qword [rbp + 0x60], rdi
lea rcx, [rbp + 0x60]
call fcn.1400bb848
nop
test ebx, ebx
je 0x1400877a1
mov r8d, 1
lea rdx, str.C:_bKernellog.log
lea rcx, [rbp - 0x50]
call fcn.1400779b0
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx - 0x40], 0
jne 0x14008772d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov ecx, 0x20
call fcn.1400ba130
mov rdx, rax
mov qword [rsp + 0x60], rax
movdqa xmm0, xmmword [0x14013def0]
movdqu xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [str.____Driver_Unload_Failed___n]
movups xmmword [rax], xmm1
movsd xmm0, qword [0x14013d578]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14013d580]
mov word [rax + 0x18], cx
movzx eax, byte [0x14013d582]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
lea rcx, [rsp + 0x60]
call fcn.14006d5d0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14008772d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087879
call fcn.1400b9d58
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.14005deb0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x54], edx
mov qword [rbp + 0x60], rdi
lea rcx, [rbp + 0x60]
call fcn.1400bb848
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400877c9
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400877c7
xor bl, bl
jmp 0x1400877c9
mov bl, 1
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xc8]
call fcn.140087e30
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xbc], edx
mov qword [rbp + 0x148], rdi
lea rcx, [rbp + 0x148]
call fcn.1400bb848
nop
lea rcx, [rsp + 0x40]
call fcn.14005e470
nop
lea rcx, [rbp - 0x80]
call fcn.14005e470
movzx eax, bl
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400d3378
nop
call fcn.140059270
nop
call fcn.140059270
int3