Function at 0x1400162a0
Capabilities:
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push r12
push r15
mov rbp, rsp
sub rsp, 0x68
xor r12d, r12d
mov rbx, rcx
mov r15, rdx
lea rcx, [rbp - 0x18]
lea r9d, [r12 + 1]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov dword [rbp + 0x40], r12d
mov dword [rbp + 0x38], r12d
mov dword [rbp - 0x28], r12d
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x24], r12d
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14001635c
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x10]
lea rdx, [0x1400238c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, 0x114
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14001635c
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140016369
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x68
pop r15
pop r12
pop rbx
pop rbp
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rbp - 0x28]
lea rdx, [rbp + 0x40]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov edi, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
je 0x1400163d3
lea r9, [rbp - 0x28]
lea rdx, [rbp + 0x38]
mov r8d, 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400163d0
mov edx, dword [rbp + 0x40]
mov eax, dword [rbp + 0x38]
lea rcx, [rdx + 8]
add rcx, rax
cmp rdi, rcx
je 0x1400163e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400165b6
mov rcx, rdx
mov qword [rsp + 0x90], rsi
call fcn.140016f60
mov rsi, rax
test rax, rax
jne 0x140016408
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400165ae
mov ecx, dword [rbp + 0x38]
mov qword [rsp + 0x60], r14
call fcn.140016f60
mov r14, rax
test rax, rax
je 0x140016546
mov r8d, dword [rbp + 0x40]
lea r9, [rbp - 0x28]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
je 0x140016540
mov r8d, dword [rbp + 0x38]
lea r9, [rbp - 0x28]
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001648b
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, qword [rbp - 0x20]
test eax, eax
jne 0x14001649b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400165a9
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14001648b
mov r9, qword [rbp - 0x10]
mov r8d, dword [rbp + 0x38]
mov rcx, qword [rbp - 0x20]
mov rdx, r14
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x14001648b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140016520
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400165a9
mov r8d, dword [rbp + 0x40]
lea r9, [rbp - 0x24]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001654a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400165a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140016581
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140016592
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x68
pop r15
pop r12
pop rbx
pop rbp
ret