Function at 0x1400f2578
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.1400f29ca
mov ebp, eax
test eax, eax
jne 0x1400f27e5
mov edi, dword [rsp + 0xf0]
cmp byte [r15], 0
mov r13, rdi
je 0x1400f25cf
mov r13, qword [r15 + 8]
add r13, rdi
cmp byte [r14], 0
je 0x1400f25d9
add r13, qword [r14 + 8]
mov rax, r13
shr rax, 0x20
jne 0x1400f2983
mov rbp, qword [rsp + 0xf8]
lea r12, [rsi + 0x28]
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, r12
mov rdx, rax
call fcn.140002f00
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400f2644
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x19
jmp 0x1400f27e5
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400f27d7
mov r12, rax
cmp byte [r15], 0
mov rbp, rdi
je 0x1400f271e
movdqu xmm0, xmmword [r15 + 8]
movdqa xmmword [rsp + 0x40], xmm0
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1400f2714
lea rbp, [r12 + rdi]
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.14014b1c0
xor eax, eax
mov rcx, qword [rsp + 0x48]
pxor xmm0, xmm0
pcmpeqd xmm1, xmm1
movdqu xmm2, xmmword [rbp + rax*8]
movdqa xmm4, xmm2
pcmpeqd xmm4, xmm0
pshufd xmm3, xmm4, 0xb1
pand xmm3, xmm4
movd edx, xmm3
not edx
test dl, 1
je 0x1400f26e0
movq rdx, xmm2
sub rdx, rcx
mov qword [rbp + rax*8], rdx
pxor xmm3, xmm1
pextrw edx, xmm3, 4
test dl, 1
je 0x1400f2700
pshufd xmm2, xmm2, 0xee
movq rdx, xmm2
sub rdx, rcx
mov qword [rbp + rax*8 + 8], rdx
add rax, 2
cmp rax, 0x40
jne 0x1400f26b1
cmp byte [r15], 0
je 0x1400f29c8
lea rax, [r15 + 8]
mov rbp, qword [rax]
add rbp, rdi
cmp byte [r14], 0
je 0x1400f2743
lea rcx, [r12 + rbp]
mov r8, qword [r14 + 8]
mov rdx, qword [r14 + 0x10]
call fcn.14014b1c0
cmp byte [r14], 0
je 0x1400f29c8
add rbp, qword [r14 + 8]
lea r8, str.current_offset__shared_mem_size
mov rcx, rbp
mov rdx, r13
call fcn.14000edcc
test rax, rax
je 0x1400f2798
mov r13, rax
lea rdx, str.Init
lea r8, str....._sandboxwin_src_target_process.cc
lea rcx, [rsp + 0x58]
mov r9d, 0x138
call fcn.140059c00
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov rdx, r13
lea r8, [rsp + 0x58]
call fcn.1400646f0
mov rcx, rbp
call fcn.140064810
mov qword [0x1401ccb28], rdi
lea r8, [0x1401ccb28]
mov r9d, 8
mov rcx, rsi
call fcn.1400f24ee
mov qword [0x1401ccb28], 0
test eax, eax
je 0x1400f280b
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xf8]
mov dword [rcx], eax
jmp 0x1400f27e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x1b
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140148650
mov eax, ebp
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r15], 0
je 0x1400f2840
mov rax, qword [r15 + 8]
mov qword [0x1401ccb30], rax
lea r8, [0x1401ccb30]
mov r9d, 8
mov rcx, rsi
call fcn.1400f24ee
mov qword [0x1401ccb30], 0
test eax, eax
jne 0x1400f27c3
cmp byte [r14], 0
je 0x1400f2879
mov rax, qword [r14 + 8]
mov qword [0x1401ccb38], rax
lea r8, [0x1401ccb38]
mov r9d, 8
mov rcx, rsi
call fcn.1400f24ee
mov qword [0x1401ccb38], 0
test eax, eax
jne 0x1400f27c3
mov edi, dword [rsi + 0x10]
mov r14, qword [rsi]
mov ecx, 0x40
call fcn.140148228
mov r15, rax
mov r9, qword [rsi + 0x38]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r14
mov r8d, edi
call fcn.140113758
lea rcx, [rsi + 0x30]
mov rdx, r15
call fcn.1400f1e06
mov rcx, qword [rsi + 0x30]
mov rdx, r12
mov r8d, dword [rsp + 0xf0]
mov r9d, 0x400
call fcn.140113808
mov ebp, 4
test al, al
je 0x1400f27e5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x58]
mov qword [rdi], rax
mov rbx, qword [rsi]
mov r14, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400f2969
mov rax, qword [rsp + 0x58]
mov qword [0x1401ca998], rax
lea r8, [0x1401ca998]
mov r9d, 8
mov rcx, rsi
call fcn.1400f24ee
mov qword [0x1401ca998], 0
test eax, eax
jne 0x1400f27c3
mov rcx, rsi
call fcn.1400f1cf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x1400f27e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xf8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x1400f27e5
lea rdx, str.Init
lea r8, str....._sandboxwin_src_target_process.cc
lea r12, [rsp + 0x58]
mov rcx, r12
mov r9d, 0x116
call fcn.140059c00
lea rdx, str.shared_mem_size___std::numeric_limits_DWORD_::max__
lea rbp, [rsp + 0x78]
mov rcx, rbp
mov r8, r12
call fcn.140064660
mov rcx, rbp
call fcn.140064810
jmp 0x1400f25e6
ud2