Function at 0x140001aa2
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0xa68
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa00], rcx
mov eax, edx
mov byte [rbp + 0xa08], al
movzx eax, byte [rbp + 0xa08]
imul edx, eax, 0x808
mov rax, qword [rbp + 0xa00]
mov r8d, 0
mov rcx, rax
call sym.fseek
test eax, eax
jns 0x140001af2
mov eax, 0xffffffff
jmp 0x140001ec0
mov rdx, qword [rbp + 0xa00]
lea rax, [rbp + 0x9d4]
mov r9, rdx
mov r8d, 8
mov edx, 1
mov rcx, rax
call sym.fread
mov rdx, qword [rbp + 0xa00]
lea rax, [rbp + 0x1d0]
mov r9, rdx
mov r8d, 0x800
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xa00]
mov rcx, rax
call sym.feof
test eax, eax
je 0x140001b57
mov eax, 1
jmp 0x140001ec0
lea rax, [rbp + 0xc0]
mov r8d, 5
lea rdx, [0x14000a0b2]
mov rcx, rax
call sym.memcpy
lea rax, [rbp + 0xc0]
add rax, 5
mov rdx, qword [rbp + 0x9d4]
mov qword [rax], rdx
mov byte [rbp + 0xc4], 8
mov dword [rbp - 0x54], 0x108
lea rax, [rbp - 0x50]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp + 0xc0]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9d, 0xd
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
movzx eax, byte [rbp - 0x50]
cmp al, 0x90
je 0x140001c09
movzx ebx, byte [rbp + 0xa08]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.iv_fill_failed:__u_n
mov rdx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x140001ec0
lea rax, [rbp + 0xc0]
mov r8d, 5
lea rdx, [0x14000a0cc]
mov rcx, rax
call sym.memcpy
mov byte [rbp + 0xc4], 8
mov dword [rbp - 0x54], 0x108
lea rax, [rbp - 0x50]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp + 0xc0]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9d, 5
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
lea rdx, [rbp + 0x9d4]
lea rax, [rbp - 0x50]
mov r8d, 8
mov rcx, rax
call sym.memcmp
test eax, eax
je 0x140001cbb
movzx ebx, byte [rbp + 0xa08]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.iv_verify_failed:__u_n
mov rdx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x140001ec0
mov dword [rbp + 0x9dc], 0
jmp 0x140001eae
lea rax, [rbp + 0xc0]
mov r8d, 5
lea rdx, [0x14000a0e8]
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9dc]
shl eax, 7
cdqe
lea rdx, [rbp + 0x1d0]
add rdx, rax
lea rax, [rbp + 0xc0]
add rax, 5
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9dc]
shl eax, 7
sar eax, 8
mov byte [rbp + 0xc2], al
mov eax, dword [rbp + 0x9dc]
shl eax, 7
mov byte [rbp + 0xc3], al
mov byte [rbp + 0xc4], pe_nt_image_headers64
mov dword [rbp - 0x54], 0x108
lea rax, [rbp - 0x50]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp + 0xc0]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9d, 0x85
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
movzx eax, byte [rbp - 0x50]
cmp al, 0x90
je 0x140001dbf
movzx ebx, byte [rbp + 0xa08]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp + 0x9dc]
mov r9d, eax
mov r8d, ebx
lea rax, str.buffer_fill_failed:__u__u_n
mov rdx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x140001ec0
lea rax, [rbp + 0xc0]
mov r8d, 5
lea rdx, [0x14000a109]
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9dc]
shl eax, 7
sar eax, 8
mov byte [rbp + 0xc2], al
mov eax, dword [rbp + 0x9dc]
shl eax, 7
mov byte [rbp + 0xc3], al
mov byte [rbp + 0xc4], pe_nt_image_headers64
mov dword [rbp - 0x54], 0x108
lea rax, [rbp - 0x50]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp + 0xc0]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9d, 5
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
mov eax, dword [rbp + 0x9dc]
shl eax, 7
cdqe
lea rdx, [rbp + 0x1d0]
add rdx, rax
lea rax, [rbp - 0x50]
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.memcmp
test eax, eax
je 0x140001ea7
movzx ebx, byte [rbp + 0xa08]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp + 0x9dc]
mov r9d, eax
mov r8d, ebx
lea rax, str.buffer_verify_failed:__u__u_n
mov rdx, rax
call sym.fprintf
sub dword [rbp + 0x9dc], 1
nop
add dword [rbp + 0x9dc], 1
cmp dword [rbp + 0x9dc], 0xf
jle 0x140001cca
mov eax, 0
add rsp, 0xa68
pop rbx
pop rbp
ret