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 - 0x14c], 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 - 0x118], 0
push eax
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x15c]
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 - 0x120], eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0043ea90
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x110]
add esp, 0xc
call fcn.0041fa90
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
cmp edi, 0x100
mov byte [ebp - 4], 1
lea eax, [ebp - 0x140]
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 - 0x11c], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 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 - 0x140]
mov cl, 1
mov byte [ebp - 0x111], cl
mov dword [ebp - 0x134], 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 - 0x138]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx + 8]
jmp 0x40e2c2
xor cl, cl
mov byte [ebp - 0x111], cl
test eax, eax
je 0x40e29d
mov dword [ebp - 0x134], eax
cmp dword [ebx + 4], edx
jne 0x40e2a7
mov dword [ebp - 0x134], 0x479dc4
mov eax, dword [ebx + 8]
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x130], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
lea edx, [ebp - 0x124]
mov dword [ebp - 0x150], eax
test cl, cl
lea eax, [ebp - 0x128]
cmove eax, edx
mov dword [ebp - 0x148], eax
mov eax, edx
lea edx, [ebp - 0x128]
cmove eax, edx
xor esi, esi
mov dword [ebp - 0x144], 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, [ebp - 0x11c]
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, [ebp - 0x110]
mov ecx, dword [ebp - 0x11c]
xor eax, 1
mov eax, dword [ebp + eax*4 - 0x148]
push dword [eax]
movzx eax, byte [ebp - 0x111]
mov eax, dword [ebp + eax*4 - 0x148]
push dword [eax]
push dword [ebp - 0x120]
call fcn.0040df70
mov ecx, dword [ebp - 0x12c]
add esp, 0xc
test al, al
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x12c], 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 - 0x12c]
jmp 0x40e3ee
xor bl, bl
push edi
call fcn.004432ae
add esp, 4
cmp byte [ebp - 0x158], 0
je 0x40e410
mov ecx, dword [ebp - 0x15c]
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