Function at 0x140070030
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov edi, r9d
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0xc8]
mov r13d, dword [rsp + 0xc0]
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rdi + r13]
lea r14, [rcx + 0x28]
mov dword [rsp + 0x20], eax
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, r14
mov rdx, rax
call fcn.140022db0
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400700c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x19
jmp 0x14007035c
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 0x14007032f
mov r14, rax
mov eax, r13d
mov qword [rsp + 0x40], rax
mov ebp, edi
test r15, r15
je 0x14007018c
test r13d, r13d
je 0x14007018c
lea r13, [r14 + rbp]
mov rcx, r13
mov rdx, r15
mov r8, qword [rsp + 0x40]
call sub.ntdll.dll_memcpy
xor eax, eax
pxor xmm0, xmm0
pcmpeqd xmm1, xmm1
jmp 0x14007013a
add rax, 2
cmp rax, 0x40
je 0x14007018c
movdqu xmm2, xmmword [r13 + rax*8]
movdqa xmm4, xmm2
pcmpeqd xmm4, xmm0
pshufd xmm3, xmm4, 0xb1
pand xmm3, xmm4
movd ecx, xmm3
not ecx
test cl, 1
je 0x14007016a
movq rcx, xmm2
sub rcx, r15
mov qword [r13 + rax*8], rcx
pxor xmm3, xmm1
pextrw ecx, xmm3, 4
test cl, 1
je 0x140070130
pshufd xmm2, xmm2, 0xee
movq rcx, xmm2
sub rcx, r15
mov qword [r13 + rax*8 + 8], rcx
jmp 0x140070130
mov r13, qword [0x1400fec10]
mov qword [r13], rbp
mov rcx, rsi
call fcn.1400461c0
mov ebp, 8
test al, al
je 0x140070344
mov rcx, qword [rsi]
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x20], rbp
mov r15, qword [0x1400fec10]
mov r9d, 8
mov rdx, r15
mov r8, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14007033f
mov r13, rbp
cmp qword [rsp + 0x48], 8
mov qword [r15], 0
mov ebp, 0x3a
jne 0x14007034c
mov r15, qword [0x1400fd700]
mov rax, qword [rsp + 0x40]
mov qword [r15], rax
mov rcx, rsi
call fcn.1400461c0
mov ebp, 8
test al, al
je 0x14007038c
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
mov r15, qword [0x1400fd700]
mov r9d, 8
mov rdx, r15
mov r8, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140070380
cmp qword [rsp + 0x48], 8
mov qword [r15], 0
mov ebp, 0x3a
jne 0x14007034c
mov ecx, 0x40
call fcn.1400c70b0
mov r15, rax
mov rdx, qword [rsi]
mov r8d, dword [rsi + 0x10]
mov r9, qword [rsi + 0x40]
mov qword [rsp + 0x20], rbx
mov rcx, rax
call fcn.14006bf40
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], r15
test rbx, rbx
je 0x1400702a0
mov rcx, rbx
call fcn.14006bfb0
mov rcx, rbx
call fcn.1400c7190
mov r15, qword [rsi + 0x38]
mov rcx, r15
mov rdx, r14
mov r8d, edi
mov r9d, 0x400
call fcn.14006c0e0
mov ebp, 4
test al, al
je 0x14007035c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsi]
mov rdx, qword [rsi + 0x28]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140070395
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x1400fe478]
mov qword [rdi], rax
mov r9d, 8
mov rcx, rsi
mov r8, rdi
call fcn.14006ffa0
mov qword [rdi], 0
test eax, eax
je 0x1400703ac
mov ebp, eax
jmp 0x14007034c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x1b
jmp 0x14007035c
mov ebp, 0x39
mov qword [r13], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x1400703c1
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 0x39
mov r15, qword [0x1400fd700]
mov qword [r15], 0
jmp 0x14007034c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x14007035c
mov rcx, rsi
call fcn.1400463e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x14007035c
call fcn.1400c8850
int3