Function at 0x1400018f0
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [0x14002db90]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x14
idiv ecx
mov eax, edx
add eax, 0xa
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x40], 0
jmp 0x140001955
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x40], eax
jge 0x140001990
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
mov ecx, 0x34
div rcx
mov rax, rdx
lea rcx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
movsxd rdx, dword [rsp + 0x40]
lea rdi, [0x14002db90]
movzx eax, byte [rcx + rax]
mov byte [rdi + rdx], al
jmp 0x14000194b
lea rdx, str.____Loading_vulnerable_driver
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x68], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x68]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400019f6
cmp dword [rsp + 0x44], 0x104
jbe 0x140001a27
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x70], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x70]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x140001cb2
lea rax, [rsp + 0x140]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x140001a3d
mov rax, qword [rsp + 0x48]
movsx eax, byte [rsp + rax + 0x13f]
cmp eax, 0x5c
jne 0x140001ac1
lea rax, [rsp + 0x140]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140001a7d
mov rax, qword [rsp + 0x50]
dec rax
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x104
jae 0x140001aaf
jmp 0x140001ab4
call fcn.14001868c
mov rax, qword [rsp + 0x60]
mov byte [rsp + rax + 0x140], 0
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xf8]
call fcn.140005580
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r8, [0x14001ba9c]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call fcn.140008b60
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea r8, [0x14002db90]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x118]
call fcn.140008b60
nop
lea rcx, [rsp + 0xd8]
call fcn.1400054c0
nop
lea rcx, [rsp + 0xf8]
call fcn.1400054c0
lea rcx, [rsp + 0x118]
call fcn.140005370
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r8d, 0x8708
lea rdx, [0x14001cad0]
lea rcx, [rsp + 0x118]
call fcn.140016570
movzx eax, al
test eax, eax
jne 0x140001be7
lea rdx, str.____Failed_to_create_vulnerable_driver_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0xa8], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0xa8]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0xb0], 0
lea rcx, [rsp + 0x118]
call fcn.1400054c0
mov rax, qword [rsp + 0xb0]
jmp 0x140001cb2
lea rcx, [rsp + 0x118]
call fcn.1400158e0
movzx eax, al
test eax, eax
jne 0x140001c64
lea rdx, str.____Failed_to_register_and_start_service_for_the_vulnerable_driver
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0xb8], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0xb8]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x118]
call fcn.140005370
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov qword [rsp + 0xc0], 0
lea rcx, [rsp + 0x118]
call fcn.1400054c0
mov rax, qword [rsp + 0xc0]
jmp 0x140001cb2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [0x14001bd48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x118]
call fcn.1400054c0
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140018210
add rsp, 0x260
pop rdi
ret