Function at 0x405a70
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4077cb
mov eax, dword fs:[0]
push eax
mov eax, 0x101cc
call fcn.00407280
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x101c8], esi
xor eax, eax
mov dword [ebp - 0x101d4], 0
mov dword [ebp - 0x10068], 7
mov dword [ebp - 0x1006c], 0
mov word [ebp - 0x1007c], ax
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.00401a60
test al, al
jne 0x405b10
lea eax, [ebp - 0x1007c]
mov ecx, esi
push eax
call fcn.00404a20
mov ecx, dword [ebp - 0x10068]
cmp ecx, 8
jb 0x405e4f
inc ecx
push ecx
push dword [ebp - 0x1007c]
call fcn.00404e80
jmp 0x405e4f
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b5d
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x10060]
mov dword [ebp - 0x10060], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x405b8c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1007c]
mov ecx, esi
push eax
call fcn.00404a20
mov eax, dword [ebp - 0x10068]
cmp eax, 8
jb 0x405e4f
inc eax
push eax
push dword [ebp - 0x1007c]
call fcn.00404e80
jmp 0x405e4f
lea eax, [ebp - 0x10064]
mov dword [ebp - 0x10064], 0
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x10060]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x405bd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x10060]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x405e36
push 0x40
lea eax, [ebp - 0x100c0]
mov dword [ebp - 0x1005c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1005c]
add esp, 0xc
push 0
push eax
push 0x40
lea eax, [ebp - 0x100c0]
push eax
push ebx
call edi
test eax, eax
je 0x405bb6
push 0
push 0
push dword [ebp - 0x10084]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405bb6
push 0xf8
lea eax, [ebp - 0x101b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1005c]
push 0
push eax
push 0xf8
lea eax, [ebp - 0x101b8]
push eax
push ebx
call edi
test eax, eax
je 0x405bb6
mov eax, dword [ebp - 0x10084]
xor edi, edi
push edi
push edi
push edi
lea ecx, [eax + 0x58]
add eax, 0x98
mov dword [ebp - 0x101d0], eax
mov eax, dword [ebp - 0x10120]
mov dword [ebp - 0x101c8], eax
mov eax, dword [ebp - 0x1011c]
push ebx
mov dword [ebp - 0x101cc], ecx
mov dword [ebp - 0x101c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405bb6
cmp dword [ebp - 0x101c4], edi
lea eax, [ebp - 0x1005c]
push edi
push eax
push 0x10000
lea eax, [ebp - 0x10058]
mov byte [ebp - 0x101b9], 0
push eax
push ebx
mov byte [ebp - 0x101ba], 0
setle byte [ebp - 0x101bb]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x101c0], eax
test eax, eax
je 0x405e15
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp - 0x1005c]
test ecx, ecx
je 0x405e73
add edi, ecx
cmp byte [ebp - 0x101b9], 0
jne 0x405d44
mov edx, dword [ebp - 0x101cc]
cmp edi, edx
jle 0x405d44
push 0
mov eax, edx
mov byte [ebp - 0x101b9], 1
sub eax, edi
lea edi, [edx + 4]
push 0
push edi
add ecx, eax
push ebx
mov dword [ebp - 0x1005c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405e6d
mov ecx, dword [ebp - 0x1005c]
cmp byte [ebp - 0x101ba], 0
jne 0x405d88
mov edx, dword [ebp - 0x101d0]
cmp edi, edx
jle 0x405d88
push 0
mov eax, edx
mov byte [ebp - 0x101ba], 1
sub eax, edi
lea edi, [edx + 8]
push 0
push edi
add ecx, eax
push ebx
mov dword [ebp - 0x1005c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405e6d
mov ecx, dword [ebp - 0x1005c]
cmp byte [ebp - 0x101bb], 0
jne 0x405dd1
mov edx, dword [ebp - 0x101c8]
cmp edi, edx
jle 0x405dd1
mov eax, edx
mov byte [ebp - 0x101bb], 1
sub eax, edi
mov edi, dword [ebp - 0x101c4]
push 0
push 0
add edi, edx
add ecx, eax
push edi
push ebx
mov dword [ebp - 0x1005c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405e6d
mov ecx, dword [ebp - 0x1005c]
push 0
push ecx
lea eax, [ebp - 0x10058]
push eax
push dword [ebp - 0x10064]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
test eax, eax
je 0x405e17
lea eax, [ebp - 0x1005c]
push eax
push 0x10000
lea eax, [ebp - 0x10058]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x101c0], eax
test eax, eax
jne 0x405cf0
push 0
push dword [ebp - 0x10060]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x10064]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1007c]
mov ecx, esi
push eax
call fcn.00404a20
lea ecx, [ebp - 0x1007c]
call fcn.004049e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x101c0]
test eax, eax
je 0x405e15
mov ax, word [0x40afa0]
movups xmm0, xmmword [0x40af80]
push 0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x10080]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10080], 0x20
push eax
movups xmmword [ebp - 0x34], xmm0
push 2
movups xmm0, xmmword [0x40af90]
push dword [ebp - 0x10064]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x405f0d
xor edi, edi
cmp dword [ebp - 0x10080], edi
jbe 0x405f0d
nop word [eax + eax]
movzx eax, byte [ebp + edi - 0x54]
shr eax, 4
movzx eax, word [ebp + eax*2 - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x1007c]
call fcn.00406120
movzx eax, byte [ebp + edi - 0x54]
and eax, 0xf
movzx eax, word [ebp + eax*2 - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x1007c]
call fcn.00406120
inc edi
cmp edi, dword [ebp - 0x10080]
jb 0x405ed0
push dword [ebp - 0x10064]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x10060]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x405e2f