Function at 0x140006b10
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x48], rdx
mov r13, rcx
call fcn.140001860
mov rcx, rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140006b8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x140006fd3
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x140006c69
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x140006c4d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Could_not_map_view_of_file_for:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001da0
mov rcx, rax
mov rdx, r13
call fcn.140008b00
mov rcx, rax
lea rdx, str.__Error:
call fcn.140001da0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, 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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140011cdc]
call fcn.140001da0
lea rdx, [0x140001f80]
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___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 0x140006fd3
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140006c79
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140006fd3
movsxd rbp, dword [rsi + 0x3c]
add rbp, rsi
cmp dword [rbp], 0x4550
je 0x140006cc7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Not_a_valid_NT_headers:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001da0
mov rcx, rax
mov rdx, r13
call fcn.140008b00
jmp 0x140006c36
movzx r15d, word [rbp + 0x14]
add r15, 0x18
add r15, rbp
cmp di, word [rbp + 6]
jae 0x140006dd5
mov byte [rsp + 0x40], dil
mov r8d, 8
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140007ba0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400079d0
mov rbx, qword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400079d0
mov r10, qword [rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140007a20
lea r9, [rsp + 0x40]
mov r8, r10
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.140008b30
mov r9, rbx
mov r8, qword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140007a50
lea rdx, str..vmp0
lea rcx, [rsp + 0x78]
call fcn.140008ba0
test al, al
jne 0x140006f01
lea rdx, str..vmp1
lea rcx, [rsp + 0x78]
call fcn.140008ba0
test al, al
jne 0x140006f01
lea rdx, [0x140011d68]
lea rcx, [rsp + 0x78]
call fcn.140008ba0
test al, al
jne 0x140006ead
lea rdx, str.MTX1
lea rcx, [rsp + 0x78]
call fcn.140008ba0
test al, al
jne 0x140006ead
lea rcx, [rsp + 0x78]
call fcn.140001870
inc rdi
add r15, 0x28
movzx eax, word [rbp + 6]
cmp rdi, rax
jb 0x140006ce2
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.140007ba0
nop
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.140007860
cmp rax, 0xffffffffffffffff
je 0x140006fa6
call fcn.140003170
lea rdx, [0x140011af4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 6
call fcn.140003140
lea rdx, [0x140011af8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
call fcn.140003170
lea rdx, str.__Suspicious_file_indicator:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 6
call fcn.140003140
mov rdx, r13
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008b00
lea rdx, [0x140001f80]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140003170
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x140006fc3
call fcn.140003170
lea rdx, [0x140011af4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 2
call fcn.140003140
lea rdx, [0x140011af8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
call fcn.140003170
lea rdx, str.__Matrix_has_been_detected_in:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 2
jmp 0x140006f53
call fcn.140003170
lea rdx, [0x140011af4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 6
call fcn.140003140
lea rdx, [0x140011af8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
call fcn.140003170
lea rdx, str.__Suspicious_file_indicator:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001da0
mov ecx, 6
call fcn.140003140
mov rdx, r13
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008b00
lea rdx, [0x140001f80]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140003170
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x78]
call fcn.140001870
mov al, 1
jmp 0x140006fd3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea rcx, [rsp + 0x98]
call fcn.140001870
movzx eax, bl
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14000f430
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret