Function at 0x140070830
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 [0x1401054a8]
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.1400235b0
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400708c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x19
jmp 0x140070b5c
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 0x140070b2f
mov r14, rax
mov eax, r13d
mov qword [rsp + 0x40], rax
mov ebp, edi
test r15, r15
je 0x14007098c
test r13d, r13d
je 0x14007098c
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 0x14007093a
add rax, 2
cmp rax, 0x40
je 0x14007098c
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 0x14007096a
movq rcx, xmm2
sub rcx, r15
mov qword [r13 + rax*8], rcx
pxor xmm3, xmm1
pextrw ecx, xmm3, 4
test cl, 1
je 0x140070930
pshufd xmm2, xmm2, 0xee
movq rcx, xmm2
sub rcx, r15
mov qword [r13 + rax*8 + 8], rcx
jmp 0x140070930
mov r13, qword [0x14010cc70]
mov qword [r13], rbp
mov rcx, rsi
call fcn.1400469c0
mov ebp, 8
test al, al
je 0x140070b44
mov rcx, qword [rsi]
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x20], rbp
mov r15, qword [0x14010cc70]
mov r9d, 8
mov rdx, r15
mov r8, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140070b3f
mov r13, rbp
cmp qword [rsp + 0x48], 8
mov qword [r15], 0
mov ebp, 0x3a
jne 0x140070b4c
mov r15, qword [0x14010b760]
mov rax, qword [rsp + 0x40]
mov qword [r15], rax
mov rcx, rsi
call fcn.1400469c0
mov ebp, 8
test al, al
je 0x140070b8c
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r13
mov r15, qword [0x14010b760]
mov r9d, 8
mov rdx, r15
mov r8, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140070b80
cmp qword [rsp + 0x48], 8
mov qword [r15], 0
mov ebp, 0x3a
jne 0x140070b4c
mov ecx, 0x40
call fcn.1400d4140
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.14006c740
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], r15
test rbx, rbx
je 0x140070aa0
mov rcx, rbx
call fcn.14006c7b0
mov rcx, rbx
call fcn.1400d4220
mov r15, qword [rsi + 0x38]
mov rcx, r15
mov rdx, r14
mov r8d, edi
mov r9d, 0x400
call fcn.14006c8e0
mov ebp, 4
test al, al
je 0x140070b5c
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 0x140070b95
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x14010c4d8]
mov qword [rdi], rax
mov r9d, 8
mov rcx, rsi
mov r8, rdi
call fcn.1400707a0
mov qword [rdi], 0
test eax, eax
je 0x140070bac
mov ebp, eax
jmp 0x140070b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebp, 0x1b
jmp 0x140070b5c
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 0x140070bc1
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 [0x14010b760]
mov qword [r15], 0
jmp 0x140070b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x140070b5c
mov rcx, rsi
call fcn.140046be0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x140070b5c
call fcn.1400d58e0
int3