Function at 0x421040
Capabilities:
Create new key via cryptacquirecontext
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a536e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 1
movups xmmword [esi], xmm0
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x50], 1
jb 0x4210b8
mov edx, dword [edx]
push 0
push 0x8000000
push 3
push 0
push 7
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 1
cmp edi, 0xffffffff
je 0x4213e6
test edi, edi
je 0x4213e6
push 0
push 0
push dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4213da
cmp esi, 0xffffffff
je 0x4213da
mov dword [ebp - 0x18], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42117e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x421191
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42117e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4213c9
push 0
push eax
jmp 0x4213c3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov dword [ebp - 0x48], edx
test eax, eax
je 0x42120c
mov esi, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x40], eax
nop dword [eax + eax]
cmp eax, 0xa00000
mov eax, 0xa00000
cmova ecx, eax
push ecx
push edx
push 0
push 4
push esi
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x421274
push 0
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push dword [ebp - 0x1c]
test eax, eax
je 0x42124d
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x48], ecx
sub dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4211b0
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x421295
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42123a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4213c9
push 0
push eax
jmp 0x4213c3
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421261
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4213c9
push 0
push eax
jmp 0x4213c3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421282
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4213c9
push 0
push eax
jmp 0x4213c3
xor ecx, ecx
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], ecx
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4212ca
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00422700
mov ecx, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x30]
push eax
push ecx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
cmp ecx, eax
je 0x421369
nop dword [eax]
mov al, byte [ecx]
mov byte [ebp - 0x39], al
mov byte [ebp - 4], 6
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x421408
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x39]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push str._02X
push eax
call fcn.0041eca0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
push esi
call fcn.00405be0
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421357
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, dword [ebp - 0x44]
jne 0x4212f0
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
test ecx, ecx
je 0x4213ab
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x42138c
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421403
push edx
push ecx
call fcn.0047dc2a
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4213b9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4213c9
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x4c]
jmp 0x4213e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
jmp 0x4213e8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
call fcn.00482fbf
push 0x80004005
call fcn.00406ac0
int3