Function at 0x402200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411003
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Unloading_vulnerable_driver
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
test esi, esi
je 0x40225d
cmp esi, 0xffffffff
je 0x40225d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xf4]
call fcn.00401240
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040ee60
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0xe0]
cmp ecx, 7
jbe 0x4022c1
mov edx, dword [ebp - 0xf4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040fe5c
add esp, 8
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
test bl, bl
jne 0x4022e9
xor al, al
jmp 0x402471
lea ecx, [ebp - 0x28]
call fcn.00401480
push 0xb0
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd8]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004058b0
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call ebx
mov esi, eax
call ebx
mov ecx, eax
mov eax, esi
imul ecx
push 0
push 0x1e8480
push edx
push eax
call fcn.00410db0
mov dword [ebp - 0xdc], eax
add eax, 0x8af0
push eax
call fcn.0040fe6a
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xdc]
xor esi, esi
add eax, 0x8af0
je 0x40238d
nop dword [eax + eax]
call ebx
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0xdc]
mov byte [edi + esi], dl
add eax, 0x8af0
inc esi
cmp esi, eax
jb 0x402370
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xd8]
cdq
add eax, 0x8af0
adc edx, 0
push edx
push eax
push edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Error_dumping_shit_inside_the_disk
test al, al
jne 0x4023cc
mov edx, str.___Vul_driver_data_destroyed_before_unlink
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0xd4]
call fcn.00405cb0
test eax, eax
jne 0x402405
push eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push edi
call fcn.0040fd47
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
lea ecx, [ebp - 0xd8]
test eax, eax
sete bl
call fcn.00402490
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40246f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402465
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402465
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret