Function at 0x40e0f0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b216
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x48106c]
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 dword [ebp - reloc.USER32.dll_PeekMessageA], edx
mov ebx, ecx
cmp dword [0x48608c], 6
mov ecx, 0x472580
mov esi, dword [ebp + 0xc]
mov eax, 0x472544
push 0xf0000000
push 0x18
cmovb eax, ecx
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
push eax
push 0
lea eax, reloc.USER32.dll_PeekMessageA
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, reloc.USER32.dll_PeekMessageA
lea edx, reloc.USER32.dll_PeekMessageA
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.0040e430
mov dword [ebp - 4], 0
mov edi, dword [ebx + 8]
cmp edi, 0x100
sbb eax, eax
and eax, 0xffffff80
add eax, 0x100
push eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
lea eax, reloc.USER32.dll_PeekMessageA
push esi
push eax
call fcn.0043ea90
mov edx, dword [ebp - reloc.USER32.dll_PeekMessageA]
lea ecx, reloc.USER32.dll_PeekMessageA
add esp, 0xc
call fcn.0041fa90
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
cmp edi, 0x100
mov byte [ebp - 4], 1
lea eax, reloc.USER32.dll_PeekMessageA
sbb edx, edx
and edx, 0xffffff80
push eax
push ecx
add edx, 0x100
mov eax, 0x481b40
cmp edi, 0x100
mov ecx, 0x4825d8
cmovb ecx, eax
call fcn.0041d580
add esp, 8
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
mov byte [ebp - 0x12c], 0
call fcn.00421640
and eax, 1
xor edx, edx
or eax, edx
mov eax, dword [ebx]
je 0x40e286
mov edi, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov cl, 1
mov byte [ebp - 0x111], cl
mov dword [ebp - reloc.USER32.dll_PeekMessageA], edi
test eax, eax
je 0x40e26b
mov dword [ebp - 0x130], eax
cmp dword [ebx + 4], edx
jne 0x40e275
mov dword [ebp - 0x130], 0x479dc4
mov eax, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
mov eax, dword [ebx + 8]
jmp 0x40e2c2
xor cl, cl
mov byte [ebp - 0x111], cl
test eax, eax
je 0x40e29d
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
cmp dword [ebx + 4], edx
jne 0x40e2a7
mov dword [ebp - 0x134], 0x479dc4
mov eax, dword [ebx + 8]
mov edi, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
mov eax, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov dword [ebp - 0x130], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
lea edx, reloc.USER32.dll_PeekMessageA
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
test cl, cl
lea eax, reloc.USER32.dll_PeekMessageA
cmove eax, edx
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
mov eax, edx
lea edx, reloc.USER32.dll_PeekMessageA
cmove eax, edx
xor esi, esi
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
nop dword [eax + eax]
push dword [ebp + esi - 0x148]
push 0
push 0
push dword [ebp + esi - 0x154]
push dword [ebp + esi - 0x134]
push dword [ebp - 0x118]
call ebx
test eax, eax
je 0x40e3ec
add esi, 4
cmp esi, 8
jl 0x40e300
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40e3ce
push 0
push dword [ebp + 8]
push dword [ebp - 0x14c]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40e3c2
movzx eax, byte [ebp - 0x111]
lea edx, reloc.USER32.dll_PeekMessageA
mov ecx, dword [ebp - reloc.USER32.dll_PeekMessageA]
xor eax, 1
mov eax, dword [ebp + eax*4 - reloc.USER32.dll_PeekMessageA]
push dword [eax]
movzx eax, byte [ebp - 0x111]
mov eax, dword [ebp + eax*4 - reloc.USER32.dll_PeekMessageA]
push dword [eax]
push dword [ebp - 0x120]
call fcn.0040df70
mov ecx, dword [ebp - reloc.USER32.dll_PeekMessageA]
add esp, 0xc
test al, al
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - reloc.USER32.dll_PeekMessageA], ecx
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp - 0x124]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call esi
push dword [ebp - 0x128]
call esi
mov ebx, dword [ebp - reloc.USER32.dll_PeekMessageA]
jmp 0x40e3ee
xor bl, bl
push edi
call fcn.004432ae
add esp, 4
cmp byte [ebp - 0x158], 0
je 0x40e410
mov ecx, dword [ebp - reloc.USER32.dll_PeekMessageA]
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
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.0043c755
mov esp, ebp
pop ebp
ret