Function at 0x1400bf530
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x308
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x60], rax
lea rdx, str.____Unloading_vulnerable_driver
lea rcx, [rsp + 0x210]
call fcn.1400b95b0
mov rcx, rax
call fcn.1400bfdb0
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400b5690
mov qword [rsp + 0x68], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x68]
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 + 0x310], 0
je 0x1400bf5b3
cmp qword [rsp + 0x310], 0xffffffffffffffff
je 0x1400bf5b3
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xe0]
call fcn.1400bd9e0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400cc8b0
movzx eax, al
test eax, eax
jne 0x1400bf5ea
mov dword [rsp + 0x38], 1
jmp 0x1400bf5f2
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0xe0]
call fcn.1400201d0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400bf618
xor al, al
jmp 0x1400bf881
lea rcx, [rsp + 0xc0]
call fcn.1400bdac0
nop
lea rcx, [rsp + 0xc0]
call fcn.140020180
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, Ordinal_35
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.1400327c0
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
cqo
mov ecx, 0x23d6df
idiv rcx
mov rax, rdx
add rax, 0x1649d
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call fcn.14015e4c0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
jmp 0x1400bf6b1
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x34]
cmp qword [rsp + 0x40], rax
jae 0x1400bf6e1
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 + 0x40]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x1400bf6a4
movsxd rax, dword [rsp + 0x34]
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x100]
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 + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x50]
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 0x1400bf78f
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x90], rax
lea rdx, str.____Error_dumping_shit_inside_the_disk
lea rcx, [rsp + 0x252]
call fcn.1400b9700
mov rcx, rax
call fcn.1400bfe90
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.1400b5690
mov qword [rsp + 0x98], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0x98]
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 0x1400bf7f4
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0xa8], rax
lea rdx, str.___Vul_driver_data_destroyed_before_unlink
lea rcx, [rsp + 0x2a2]
call fcn.1400b97c0
mov rcx, rax
call fcn.1400bff10
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.1400b5690
mov qword [rsp + 0xb0], rax
lea rdx, [0x1400b9a30]
mov rcx, qword [rsp + 0xb0]
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 + 0x100]
call fcn.140036900
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14015de00
lea rcx, [rsp + 0xc0]
call fcn.140020180
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x1400bf85c
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x100]
call fcn.1400349f0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400201d0
movzx eax, byte [rsp + 0x31]
jmp 0x1400bf881
mov byte [rsp + 0x32], 1
lea rcx, [rsp + 0x100]
call fcn.1400349f0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400201d0
movzx eax, byte [rsp + 0x32]
add rsp, 0x308
ret