Function at 0x140001070
Capabilities:
Get file size
Read file on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp ecx, 2
jge 0x1400010ac
lea rcx, str.Please_provide_a_file
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001360
add rsp, 0x68
ret
mov rcx, qword [rdx + 8]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov dword [rsp + 0x40], r14d
test rcx, rcx
je 0x140001306
mov qword [rsp + 0x30], r14
mov edi, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001126
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileA_Failed_With_Error:__d__n
call fcn.140001010
jmp 0x140001306
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14000115a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001306
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000119b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001306
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400012cd
cmp ebp, dword [rsp + 0x40]
jne 0x1400012cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x140001306
mov eax, dword [0x7ffe0014]
movabs rsi, 0xd6bf94d5e57a42bd
mov ecx, dword [0x7ffe001c]
mov ebp, 0x7ffe0014
shl rcx, 0x20
or rcx, rax
mov rax, rsi
mul rcx
lea r14d, [rbp + 8]
mov rbx, rdx
shr rbx, 0x17
nop dword [rax]
lea rcx, [0x1400032a0]
call fcn.140001010
mov r8d, dword [r14]
mov rax, rsi
mov r9d, dword [rbp]
mov ecx, r8d
shl rcx, 0x20
or rcx, r9
mul rcx
shr rdx, 0x17
sub rdx, rbx
cmp rdx, 5
jb 0x140001210
mov ecx, r8d
mov rax, rsi
shl rcx, 0x20
or rcx, r9
mul rcx
shr rdx, 0x17
sub rdx, rbx
cmp rdx, 4
jb 0x140001312
mov edx, 0x32
lea rcx, str.First__d_prime_numbers_are:_n
call fcn.140001010
lea rcx, [0x1400033b0]
call fcn.140001010
mov ebx, 2
nop dword [rax]
nop word [rax + rax]
mov ecx, 2
lea r8d, [rdi - 1]
cmp r8d, ecx
jl 0x1400012b0
nop
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x1400012b0
inc ecx
cmp ecx, r8d
jle 0x1400012a0
cmp ecx, edi
jne 0x1400012c4
mov edx, edi
lea rcx, [0x1400033b4]
call fcn.140001010
inc ebx
inc edi
cmp ebx, 0x32
jle 0x140001290
jmp 0x140001312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x40]
lea rcx, str.____ReadFile_Failed_With_Error:__d__n_i__Read__d_Of__d_Bytes__n
mov edx, eax
mov r9d, ebp
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str.Couldnt_read_file_
call fcn.140001010
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001360
add rsp, 0x68
ret