Function at 0x140003df0
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 [section..data]
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.140003150
test eax, eax
jne 0x140003e4c
mov eax, 0xffffffff
jmp 0x140004069
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
jne 0x140003e79
lea rdx, [rbp + 0x190]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x140003e8f
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, [0x140009160]
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.1400028f0
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.140004750
mov rcx, rax
lea rdx, [0x140004930]
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 0x140003ef9
call fcn.1400023a0
jmp 0x140003f0a
cmp edi, 1
jne 0x140003f05
call fcn.140004970
jmp 0x140003f0a
call fcn.1400025d0
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004054
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 0x140003f81
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
cmp eax, 0x40000003
jne 0x140003fea
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.1400028f0
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.1400028f0
mov rcx, rax
lea rdx, [0x140001fb0]
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, [0x140008d10]
call fcn.1400028f0
mov r8, qword [rsp + 0x70]
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140005590
test al, al
jne 0x140004023
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 0x140004062
lea rdx, str._ERROR__NtMapViewOfSection_failed__status:
call fcn.1400028f0
mov rcx, rax
lea rdx, [0x140001fb0]
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, [0x140002ac0]
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 0x140004067
mov r8, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call fcn.140003360
test al, al
je 0x140004067
xor edx, edx
mov rcx, rbx
call fcn.140005f38
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.1400035c0
jmp 0x140004067
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.1400028f0
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140006450
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret