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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a876
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x47f06c]
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 [0x48408c], 6
mov ecx, 0x471568
mov esi, dword [ebp + 0xc]
mov eax, 0x47152c
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.0040e390
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.0043e120
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x110]
add esp, 0xc
call fcn.0041d770
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, 0x47fb40
cmp edi, 0x100
mov ecx, 0x4805d8
cmovb ecx, eax
call fcn.0041fe40
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.0041e750
and eax, 1
xor edx, edx
or eax, edx
mov eax, dword [ebx]
je 0x40e1e6
mov edi, dword [ebp - 0x140]
mov cl, 1
mov byte [ebp - 0x111], cl
mov dword [ebp - 0x134], edi
test eax, eax
je 0x40e1cb
mov dword [ebp - 0x130], eax
cmp dword [ebx + 4], edx
jne 0x40e1d5
mov dword [ebp - 0x130], 0x478d04
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx + 8]
jmp 0x40e222
xor cl, cl
mov byte [ebp - 0x111], cl
test eax, eax
je 0x40e1fd
mov dword [ebp - 0x134], eax
cmp dword [ebx + 4], edx
jne 0x40e207
mov dword [ebp - 0x134], 0x478d04
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 0x40e34c
add esi, 4
cmp esi, 8
jl 0x40e260
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 0x40e32e
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 0x40e322
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.0040ded0
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 0x40e34e
xor bl, bl
push edi
call fcn.0044293e
add esp, 4
cmp byte [ebp - 0x158], 0
je 0x40e370
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.0043bdd7
mov esp, ebp
pop ebp
ret