Function at 0x1402728b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
vmovups xmmword [rsp + 0x40], xmm6
vmovups xmmword [rsp + 0x50], xmm7
vmovups xmmword [rsp + 0x60], xmm8
vmovups xmmword [rsp + 0x70], xmm9
vmovups xmmword [rsp + 0x80], xmm10
mov rax, qword [r8]
mov r13, rcx
mov r15, rdx
mov rsi, r8
test rdx, rdx
jne 0x140272be8
sub rax, 2
mov r10, 0xffffffffffffffff
mov r9d, 2
mov r14d, 2
mov r15d, 1
mov ebx, 1
vmovq xmm6, rax
vmovq xmm8, r9
vmovq xmm9, r10
mov rdi, rbx
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf0], rsi
nop dword [rax]
vmovq rsi, xmm9
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], rdi
lea rcx, [rsi + rdi]
mov esi, 1
mov rax, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xf0]
sub rax, rdi
cmp qword [rsp + 0xe8], rdi
cmovl rax, rcx
mov ecx, 1
xor ebp, ebp
shlx rsi, rsi, rax
shlx eax, ecx, eax
cdqe
mov qword [rsp + 0x30], rsi
vmovq xmm7, rax
nop word cs:[rax + rax]
nop
vmovq rax, xmm7
vmovq rbx, xmm7
mov rcx, qword [r13]
lea rdx, [rbp + rax]
mov rax, rbp
sub rax, rbx
test qword [rsp + 0x30], rbp
vmovq rbx, xmm6
cmove rax, rdx
mov rdx, qword [r13 + 0x10]
xor r8d, r8d
xor edi, edi
add rax, rbx
andn rdx, rdx, rax
shl edx, 5
call sym.fseek
mov ecx, 0x20
call sym.malloc
mov r9, qword [r13]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov rsi, rax
call sym.fread
mov rbx, qword [rsp + 0x28]
cmp rax, 0x20
mov rax, qword [r15]
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13]
cmovne rsi, rdi
xor r8d, r8d
sub rax, rbx
andn rdx, rdx, rax
shl edx, 5
call sym.fseek
mov ecx, 0x20
call sym.malloc
mov r9, qword [r13]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov rbx, rax
call sym.fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
cmovne rbx, rdi
call sym.calloc
mov rdx, qword [r15]
mov rdi, rax
lea rax, [rdx + rdx]
sar rdx, 0x3f
xor rax, rdx
cmp rax, 0x7f
jbe 0x140272be0
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [rdi + rcx], r8b
cmp rax, 0x7f
ja 0x140272a90
add rdx, rdi
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
call sym.malloc
mov ecx, 0x20
mov r14, rax
mov rax, qword [r13 + 0x18]
vmovdqu ymm1, ymmword [rdi]
vmovdqu ymm2, ymmword [rsi]
vmovdqu ymm3, ymmword [rbx]
vmovdqu ymm0, ymmword [rax]
vmovdqu ymmword [r14 + 0x20], ymm1
vmovdqu ymmword [r14 + 0x40], ymm2
vmovdqu ymmword [r14 + 0x60], ymm3
vmovdqu ymmword [r14], ymm0
vzeroupper
call sym.malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov r8, rax
mov rcx, r14
mov r12, rax
call sym.sha3
mov rdx, qword [r13 + 0x10]
xor r8d, r8d
inc rbp
mov rcx, qword [r13]
andn rdx, rdx, qword [r15]
shl edx, 5
call sym.fseek
mov r9, qword [r13]
mov r8d, 0x20
mov edx, 1
mov rcx, r12
call sym.fwrite
inc qword [r15]
mov rcx, r12
call sym.free
mov rcx, r14
call sym.free
mov rcx, rsi
call sym.free
mov rcx, rbx
call sym.free
mov rcx, rdi
call sym.free
cmp qword [rsp + 0x28], rbp
jne 0x1402729a0
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
vmovq rax, xmm6
add rax, r14
inc rdi
vmovq xmm6, rax
vmovq rax, xmm8
cmp rdi, rax
jl 0x140272940
vmovups xmm6, xmmword [rsp + 0x40]
vmovups xmm7, xmmword [rsp + 0x50]
vmovups xmm8, xmmword [rsp + 0x60]
vmovups xmm9, xmmword [rsp + 0x70]
vmovups xmm10, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rdi
jmp 0x140272aac
lea r9, [rdx + rdx]
cmp r9, 1
jle 0x140272b9c
mov r14d, 1
shlx r14d, r14d, edx
movsxd r14, r14d
test r14, r14
jle 0x140272b9c
mov r10, r9
sub rax, r14
sar r10, 1
neg r10
jmp 0x140272916