Function at 0x140003b30
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x10f8
call fcn.140101da0
sub rsp, rax
mov rax, qword [0x1401cf518]
xor rax, rsp
mov qword [rsp + 0x10e0], rax
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x70]
call fcn.1400035d0
nop
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0xb0]
lea rcx, [0x140143cd0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x1118]
call fcn.140004b60
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140003c5a
lea rdx, str.Error_opening_file
lea rcx, [rsp + 0x70]
call fcn.140003940
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140003cda
lea rdx, str.CryptAcquireContext_failed
lea rcx, [rsp + 0x70]
call fcn.140003940
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140003d69
lea rdx, str.CryptCreateHash_failed
lea rcx, [rsp + 0x70]
call fcn.140003940
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003e44
cmp dword [rsp + 0x54], 0
je 0x140003e44
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140003e3f
lea rdx, str.CryptHashData_failed
lea rcx, [rsp + 0x70]
call fcn.140003940
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
jmp 0x140003d69
cmp dword [rsp + 0x50], 0
jne 0x140003ec1
lea rdx, str.ReadFile_failed
lea rcx, [rsp + 0x70]
call fcn.140003940
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
mov dword [rsp + 0x58], 0x14
lea rcx, [rsp + 0x90]
call fcn.1400035d0
nop
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0xc8]
mov edx, 2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140003f6e
mov dword [rsp + 0x44], 0
jmp 0x140003f14
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x44], eax
jae 0x140003f6c
mov eax, dword [rsp + 0x44]
movzx eax, byte [rsp + rax + 0xc8]
sar eax, 4
cdqe
movzx edx, byte [rsp + rax + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.140003a40
mov eax, dword [rsp + 0x44]
movzx eax, byte [rsp + rax + 0xc8]
and eax, 0xf
cdqe
movzx edx, byte [rsp + rax + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.140003a40
jmp 0x140003f0a
jmp 0x140003fcc
lea rdx, str.CryptGetHashParam_failed
lea rcx, [rsp + 0x70]
call fcn.140003940
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x90]
call fcn.140003860
nop
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
jmp 0x14000403d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x1110]
call fcn.1400034f0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x90]
call fcn.140003860
nop
lea rcx, [rsp + 0x70]
call fcn.140003860
nop
mov rcx, qword [rsp + 0x1118]
call fcn.140003890
mov rax, qword [rsp + 0x1110]
mov rcx, qword [rsp + 0x10e0]
xor rcx, rsp
call fcn.140101e00
add rsp, 0x10f8
pop rdi
pop rsi
ret