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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6da6
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x4db06c]
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 [0x4e042c], 6
mov ecx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov esi, dword [ebp + 0xc]
mov eax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
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]
mov byte [ebp - 0x158], 1
mov dword [ebp - 0x15c], eax
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 - 0x134], eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00489a20
mov edx, dword [ebp - 0x134]
lea ecx, [ebp - 0x110]
add esp, 0xc
call fcn.00462dd0
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, 0x4dbcb0
cmp edi, 0x100
mov ecx, 0x4dc748
cmovb ecx, eax
call fcn.0045fc90
add esp, 8
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x120], 0
call fcn.00465c50
and eax, 1
xor edx, edx
or eax, edx
mov eax, dword [ebx]
je 0x42d51c
mov edi, dword [ebp - 0x140]
mov cl, 1
mov byte [ebp - 0x111], cl
mov dword [ebp - 0x130], edi
test eax, eax
je 0x42d501
mov dword [ebp - 0x12c], eax
cmp dword [ebx + 4], edx
jne 0x42d50b
mov dword [ebp - 0x12c], 0x4b88fd
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx + 8]
jmp 0x42d558
xor cl, cl
mov byte [ebp - 0x111], cl
test eax, eax
je 0x42d533
mov dword [ebp - 0x130], eax
cmp dword [ebx + 4], edx
jne 0x42d53d
mov dword [ebp - 0x130], 0x4b88fd
mov eax, dword [ebx + 8]
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x12c], 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
push dword [ebp + esi - 0x148]
push 0
push 0
push dword [ebp + esi - 0x154]
push dword [ebp + esi - 0x130]
push dword [ebp - 0x118]
call ebx
test eax, eax
je 0x42d676
add esi, 4
cmp esi, 8
jl 0x42d590
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 0x42d65e
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 0x42d652
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 - 0x134]
call fcn.0042d210
mov ecx, dword [ebp - 0x120]
add esp, 0xc
test al, al
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x120], 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
jmp 0x42d67d
mov byte [ebp - 0x120], 0
push edi
call fcn.00491111
add esp, 4
push 0
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x120]
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.00487555
mov esp, ebp
pop ebp
ret