Function at 0x140003820
Capabilities:
Get common file path

Disassembly:
jmp 0x140003820
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x770
lea rdi, [rsp + 0x60]
mov ecx, 0x1c4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x780]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x768], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x2a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x4b4], eax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x140015ebc]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, dword [rsp + 0x790]
mov rdx, qword [rsp + 0x788]
lea rcx, [rsp + 0x70]
call fcn.14000113b
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
je 0x1400038f6
cmp qword [rsp + 0x4b8], 0xffffffffffffffff
jne 0x1400038fd
xor al, al
jmp 0x140003cc3
mov qword [rsp + 0x4c8], 0
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x4c8]
call qword [0x14001c4c0]
mov dword [rsp + 0x4d4], eax
cmp dword [rsp + 0x4d4], 0
je 0x1400039df
lea rdx, [0x140015d39]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x14000166d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x4d4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
cmp dword [rsp + 0x4d4], 0x4000000e
jne 0x1400039d8
lea rdx, [0x140015d3a]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
xor al, al
jmp 0x140003cc3
lea rax, [rsp + 0x4e8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x534], 0
lea rax, [rsp + 0x534]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x4e8]
xor edx, edx
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov dword [rsp + 0x4d4], eax
cmp dword [rsp + 0x4d4], 0
je 0x140003a64
lea rdx, [0x140015d3b]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 al, al
jmp 0x140003cc3
lea rax, [rsp + 0x560]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b8
rep stosb byte [rdi], al
lea r8, [rsp + 0x560]
lea rdx, [rsp + 0x4e8]
mov rcx, qword [rsp + 0x4c8]
call fcn.14000156e
movzx eax, al
test eax, eax
jne 0x140003aa3
xor al, al
jmp 0x140003cc3
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x728], rax
lea rdx, [0x140015d3f]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
lea rdx, [0x14000166d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rsp + 0x728]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 rcx, qword [rsp + 0x788]
call fcn.1400010eb
mov dword [rsp + 0x730], eax
mov eax, dword [rsp + 0x730]
add rax, qword [rsp + 0x728]
mov qword [rsp + 0x738], rax
mov r8, qword [rsp + 0x780]
lea rdx, [rsp + 0x4e8]
mov rcx, qword [rsp + 0x4c8]
call fcn.14000169a
movzx eax, al
test eax, eax
jne 0x140003b70
lea rdx, [0x140015da2]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 al, al
jmp 0x140003cc3
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x760], eax
lea rdx, [0x140015da3]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010af
mov ecx, dword [rsp + 0x760]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140015ec4]
mov rcx, rax
call fcn.1400010af
lea rdx, [0x140015da4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x14000166d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rsp + 0x738]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 + 0x748], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x738]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x4c8]
xor r8d, r8d
mov edx, 0x20
lea rcx, [rsp + 0x748]
call qword [0x14001c4d0]
mov dword [rsp + 0x4d4], eax
cmp dword [rsp + 0x4d4], 0
je 0x140003cc1
lea rdx, str.NtCreateThreadEx_failed:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010af
lea rdx, [0x14000166d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x4d4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140001037]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 al, al
jmp 0x140003cc3
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140016410]
call fcn.1400015cd
mov rax, rdi
mov rcx, qword [rsp + 0x768]
xor rcx, rsp
call fcn.14000136b
add rsp, 0x770
pop rdi
ret