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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dce3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x694240]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], edx
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x10], 0
jne 0x4a266c
or eax, 0xffffffff
jmp 0x4a2990
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.004a2530
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
push 0xf0000000
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x64]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4a26db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4a2927
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x80], eax
jb 0x4a26e9
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [esi], ax
jne 0x4a2714
xor ecx, ecx
jmp 0x4a272f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2720
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0047989e
push ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004a2c00
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
jb 0x4a2761
push dword [ebp - 0x2c]
call fcn.004e54ee
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x88]
cmovae esi, dword [ebp - 0x44]
push eax
push 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a28f8
push 0
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a28f8
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x80]
push 0
push eax
push 0
push 2
push dword [ebp - 0x88]
mov dword [ebp - 0x80], 0
call esi
test eax, eax
je 0x4a28f8
push dword [ebp - 0x80]
call fcn.0055b3bf
add esp, 4
mov dword [ebp - 0x84], eax
push dword [ebp - 0x80]
push 0
push eax
call fcn.00572db0
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
push dword [ebp - 0x84]
push 2
push dword [ebp - 0x88]
call esi
test eax, eax
je 0x4a28f8
mov ecx, dword [ebp - 0x80]
xor edx, edx
call fcn.004a22a0
mov esi, eax
push esi
mov dword [ebp - 0x90], esi
call fcn.0055b3bf
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.00572db0
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
add esp, 8
push eax
push edi
call fcn.004a2340
add esp, 0xc
test eax, eax
setne bl
test bl, bl
je 0x4a28e7
push edi
lea ecx, [ebp - 0x2c]
call fcn.00478f60
push ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
call fcn.004a2a30
add esp, 4
mov ecx, dword [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0047906a
mov byte [ebp - 4], 5
cmp dword [ebp - 0x68], 8
jb 0x4a28ac
push dword [ebp - 0x7c]
call fcn.004e54ee
add esp, 4
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 0x10
jb 0x4a28d5
push dword [ebp - 0x2c]
call fcn.004e54ee
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push edi
call fcn.00571d79
add esp, 4
test bl, bl
je 0x4a28f8
xor esi, esi
jmp 0x4a2900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0x10
jb 0x4a2915
push dword [ebp - 0x44]
call fcn.004e54ee
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x4a293e
push eax
call fcn.00571d79
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4a294f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4a2962
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], 8
jb 0x4a297a
push dword [ebp - 0x64]
call fcn.004e54ee
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov eax, esi
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005712ac
mov esp, ebp
pop ebp
ret