Function at 0x1400031a0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov r15d, r9d
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140059b60]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x18], xmm0
movaps xmm0, xmmword [0x14002c700]
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x18], 2
lea rbx, [rbp - 0x30]
mov qword [rbp + 0x20], rbx
lea rax, str.
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], 5
lea rsi, [rbp - 8]
lea rdx, [rbp + 0x48]
lea r8, [rbp + 0x18]
mov rcx, rsi
call fcn.140005620
cmp qword [rbp + 0x10], 8
jb 0x14000322e
mov rsi, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [rbp + 0x58], rax
je 0x1400032b8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
inc rax
mov qword [rbp - 0x40], rax
cmp rax, 1
mov qword [rbp - 0x38], rsi
ja 0x1400032d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 8]
cmp qword [rbp + 0x10], 8
jb 0x14000331b
mov rdx, qword [rbp - 8]
jmp 0x14000331f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 8]
cmp qword [rbp + 0x10], 8
jb 0x1400033d9
mov rdx, qword [rbp - 8]
jmp 0x1400033dd
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400034ee
mov r13, rax
mov rdx, qword [rdi]
test r15b, r15b
je 0x14000350c
mov rcx, r12
xor r8d, r8d
call fcn.140024260
jmp 0x140003517
lea rdx, [rbp - 8]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x10], eax
movaps xmm0, xmmword [0x14002c710]
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x50], rbx
lea rax, str.Failed_to_create_filemapping_for___error:_
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0x2e
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x38]
lea r8, [rbp + 0x48]
call fcn.140005620
lea rcx, [rbp + 0x18]
mov edx, 2
call fcn.140025010
mov rax, qword [rbp + 0x30]
cmp rax, 8
mov rsi, qword [rbp + 0x58]
jb 0x1400033bd
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400033b8
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140003640
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
call fcn.140029c98
xor edi, edi
cmp qword [rbp - 0x40], 2
jb 0x14000347d
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000347d
lea rdx, [rbp - 8]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x10], eax
movaps xmm0, xmmword [0x14002c710]
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x50], rbx
lea rax, str.Failed_open_file___error:_
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0x1e
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x38]
lea r8, [rbp + 0x48]
call fcn.140005620
lea rcx, [rbp + 0x18]
mov edx, 2
call fcn.140025010
mov rax, qword [rbp + 0x30]
cmp rax, 8
mov rsi, qword [rbp + 0x58]
jb 0x14000347b
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140003476
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140003640
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
call fcn.140029c98
xor edi, edi
mov rax, rsi
inc rax
cmp rax, 2
jb 0x140003492
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
cmp rax, 8
jb 0x1400034d8
mov rcx, qword [rbp - 8]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400034d3
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140003640
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
call fcn.140029c98
mov eax, edi
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 8]
cmp qword [rbp + 0x10], 8
jb 0x1400035e3
mov rdx, qword [rbp - 8]
jmp 0x1400035e7
mov rcx, r12
xor r8d, r8d
call fcn.1400243d0
mov r15, rax
test rax, rax
mov rsi, qword [rbp + 0x58]
je 0x140003569
mov rdi, qword [r14]
mov rbx, qword [r14 + 8]
nop word [rax + rax]
cmp rdi, rbx
je 0x1400035d0
mov byte [rsp + 0x20], 0
mov rcx, r12
mov rdx, r13
mov r8, rdi
mov r9, r15
call fcn.1400037e0
add rdi, 0x10
test al, al
mov rsi, qword [rbp + 0x58]
jne 0x140003530
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400033bd
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], eax
movaps xmm0, xmmword [0x14002c710]
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x50], rbx
lea rax, str.Failed_to_read__from_remote_process__error:_
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0x30
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x38]
lea r8, [rbp + 0x48]
call fcn.140005620
lea rcx, [rbp + 0x18]
mov edx, 2
call fcn.140025010
jmp 0x140003373
mov dil, 1
cmp qword [rbp - 0x40], 2
jb 0x14000347d
jmp 0x1400033ca
lea rdx, [rbp - 8]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x10], eax
movaps xmm0, xmmword [0x14002c710]
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x50], rbx
lea rax, str.Failed_to_create_filemapping_for___error:_
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0x2e
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x38]
lea r8, [rbp + 0x48]
call fcn.140005620
lea rcx, [rbp + 0x18]
mov edx, 2
call fcn.140025010
jmp 0x140003373
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3