Function at 0x1400117e4
Capabilities:
Get common file path

Disassembly:
jmp 0x14001a8c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x6b0
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6d8]
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x648], rax
lea rcx, [0x1400333ac]
call fcn.140011839
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rbp + 0x680]
lea rcx, [rbp + 8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp + 0x680]
call fcn.1400117d5
mov edx, 0x104
lea rcx, [rbp + 0x40]
call qword [sym.imp.ucrtbased.dll_wcsnlen]
test rax, rax
jne 0x14001a97e
lea rdx, [rbp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rbp + 0x268]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x268]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp + 0x298]
lea rcx, str.C:WindowsSystem32
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x2d8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rbp + 0x298]
lea rcx, [rbp + 0x2d8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp + 0x308]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, str.Process_Ghosting_test_
mov qword [rbp + 0x338], rax
mov rdx, qword [rbp + 0x338]
lea rcx, [rbp + 0x308]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8d, 1
xor edx, edx
lea rcx, [rbp + 0x358]
call fcn.140011794
mov qword [rbp + 0x378], 0
call fcn.14001172b
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x398], rax
cmp qword [rbp + 0x398], 0
je 0x14001aa78
mov rax, qword [rbp + 0x398]
cmp qword [rax + 0x20], 0
je 0x14001aa78
mov rax, qword [rbp + 0x398]
mov rax, qword [rax + 0x20]
add rax, 0xc0
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x3b8], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x378]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x308]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x358]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x268]
lea r8, [rbp + 0x2d8]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x3b8]
call qword [0x14002c508]
mov dword [rbp + 0x3d4], eax
cmp dword [rbp + 0x3d4], 0
je 0x14001ab22
lea rdx, str.RtlCreateProcessParametersEx_failed
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011104
lea rdx, [0x14001105f]
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 0x14001ac1d
mov r8d, 4
mov rdx, qword [rbp + 0x3b8]
mov rcx, qword [rbp + 0x670]
call fcn.1400111ef
mov qword [rbp + 0x3f8], rax
cmp qword [rbp + 0x3f8], 0
jne 0x14001ab93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x644], eax
lea rdx, str.___Cannot_make_a_remote_copy_of_parameters:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov ecx, dword [rbp + 0x644]
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, [0x14001105f]
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 0x14001ac1d
lea rdx, str.___Parameters_mapped_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
lea rdx, [0x14001105f]
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 rax, qword [rbp + 0x678]
mov r8, qword [rax + 8]
mov rdx, qword [rbp + 0x670]
mov rcx, qword [rbp + 0x3f8]
call fcn.140011325
movzx eax, al
test eax, eax
jne 0x14001ac1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x644], eax
lea rdx, str.___Cannot_update_PEB:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov ecx, dword [rbp + 0x644]
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, [0x14001105f]
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
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140027500]
call fcn.1400116fe
mov rax, rdi
mov rcx, qword [rbp + 0x648]
xor rcx, rbp
call fcn.14001140b
lea rsp, [rbp + 0x650]
pop rdi
pop rsi
pop rbp
ret