Function at 0x140003e00
Capabilities:
Get common file path
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, r8
lea rax, [rsp + 0x68]
mov edi, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
lea r9, [rsp + 0x60]
call fcn.140003180
test eax, eax
jne 0x140003e5c
mov eax, 0xffffffff
jmp 0x140004079
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
jne 0x140003e89
lea rdx, [rbp + 0x190]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x140003e9f
mov r8d, 0x104
lea rcx, [rbp + 0x190]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, [0x140009120]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Created_dummy_file:
call fcn.140002950
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x80]
call fcn.140004710
mov rcx, rax
lea rdx, [0x1400048f0]
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 rbx, qword [rsp + 0x50]
lea rcx, [rbp - 0x80]
mov r8d, dword [rsp + 0x68]
mov rdx, rbx
test edi, edi
jne 0x140003f09
call fcn.140002270
jmp 0x140003f1a
cmp edi, 1
jne 0x140003f15
call fcn.140004930
jmp 0x140003f1a
call fcn.1400024b0
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004064
xor edx, edx
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x78]
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
lea rdx, [r9 - 1]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test eax, eax
je 0x140003f91
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
cmp eax, 0x40000003
jne 0x140003ffa
lea rdx, str._WARNING__Image_could_not_be_mapped_at_its_original_base__If_the_payload_has_no_relocations__it_wont_work__n
call fcn.140002950
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Mapped_Base:
call fcn.140002950
mov rcx, rax
lea rdx, [0x140001f80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140008d00]
call fcn.140002950
mov r8, qword [rsp + 0x70]
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140005550
test al, al
jne 0x140004033
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Failed_to_relocate_the_implant__n
jmp 0x140004072
lea rdx, str._ERROR__NtMapViewOfSection_failed__status:
call fcn.140002950
mov rcx, rax
lea rdx, [0x140001f80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002b20]
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]
jmp 0x140004077
mov r8, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call fcn.140003370
test al, al
je 0x140004077
xor edx, edx
mov rcx, rbx
call fcn.140005ef8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.1400035d0
jmp 0x140004077
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Creating_detected_section_has_failed__n
call fcn.140002950
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140006410
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret