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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], eax
ja 0x410d9f
xor eax, eax
leave
ret
push ebx
push esi
push edi
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x18
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsb byte es:[edi], byte [esi]
pop edi
push ebx
push 0x8000000
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x410dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.Error_opening_file__s_nError:__d_n
call fcn.0041e18a
add esp, 0xc
jmp 0x410e74
cmp dword [ebp + 0x14], 0x8004
jne 0x410e08
xor edi, edi
inc edi
push 0xf0000000
push edi
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x410e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4383a8
call fcn.0041e18a
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410e74
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.0041e18a
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x410f4c
push ebx
lea eax, [ebp - 0xc]
push eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x44c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x410ec3
cmp dword [ebp - 0xc], ebx
je 0x410ed1
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x410ece
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x14]
call esi
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x410e96
jmp 0x410ed1
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], ebx
je 0x410f2a
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x410f2a
mov esi, dword [ebp + 0xc]
xor edi, edi
mov byte [esi], bl
cmp dword [ebp - 4], ebx
jbe 0x410f22
movzx eax, byte [ebp + edi - 0x4c]
mov ecx, eax
shr ecx, 4
mov cl, byte [ebp + ecx - 0x2c]
and eax, 0xf
mov al, byte [ebp + eax - 0x2c]
mov byte [esi + edi*2], cl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, dword [ebp - 4]
jb 0x410f00
mov eax, dword [ebp - 0x18]
mov byte [eax + esi], bl
jmp 0x410f2d
mov dword [ebp + 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret