Function at 0x1400212b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1401970c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x88], 0
lea rdx, str.____Unloading_vulnerable_driver
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015a80
mov qword [rsp + 0x90], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp qword [rsp + 0x270], 0
je 0x14002132e
cmp qword [rsp + 0x270], 0xffffffffffffffff
je 0x14002132e
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x100]
call fcn.14001f200
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14002b2a0
movzx eax, al
test eax, eax
jne 0x140021371
mov dword [rsp + 0x3c], 1
jmp 0x140021379
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x100]
call fcn.140022740
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14002139f
xor al, al
jmp 0x14002171a
lea rcx, [rsp + 0x120]
call fcn.14001f2e0
nop
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 7
jbe 0x1400213ee
mov dword [rsp + 0x40], 1
jmp 0x1400213f6
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140021425
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, Ordinal_35
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x140]
call fcn.14001adb0
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov qword [rsp + 0xc0], rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, qword [rsp + 0xc0]
imul rcx, rax
mov rax, rcx
cqo
mov ecx, 0x1e8480
idiv rcx
mov rax, rdx
add rax, 0x8af0
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call fcn.140163764
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
jmp 0x1400214e4
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x38]
cmp qword [rsp + 0x50], rax
jae 0x140021514
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x1400214d7
movsxd rax, dword [rsp + 0x38]
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14002158d
lea rdx, str.____Error_dumping_shit_inside_the_disk
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015a80
mov qword [rsp + 0xd0], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400215bd
lea rdx, str.___Vul_driver_data_destroyed_before_unlink
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140015a80
mov qword [rsp + 0xd8], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rsp + 0x140]
call fcn.140022af0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14016375c
cmp qword [rsp + 0x80], 0
jne 0x1400215fd
mov qword [rsp + 0xe0], 0
jmp 0x140021613
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 7
jbe 0x140021640
mov dword [rsp + 0x44], 1
jmp 0x140021648
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x140021677
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x1400216e1
mov byte [rsp + 0x33], 0
lea rax, [rsp + 0x1e8]
mov rcx, rax
call fcn.14001bfd0
lea rax, [rsp + 0x1e8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x120]
call fcn.140022740
movzx eax, byte [rsp + 0x33]
jmp 0x14002171a
mov byte [rsp + 0x34], 1
lea rax, [rsp + 0x1e8]
mov rcx, rax
call fcn.14001bfd0
lea rax, [rsp + 0x1e8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x120]
call fcn.140022740
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140163a00
add rsp, 0x260
pop rdi
ret