Function at 0x401ba0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x45c110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 0xf0000000
push ecx
push eax
xor edi, edi
push edi
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x401d25
call ebp
cmp eax, 0x80090016
jne 0x401d55
call ebp
mov edi, eax
call fcn.004349cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x20]
push str.CryptAcquireContext_err:_0x_lX
push eax
mov dword [esp + 0x34], 0
call fcn.004015e0
mov edi, dword [esp + 0x28]
add esp, 0xc
push 0
push 0
push edi
call fcn.004440be
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 8
push ecx
push eax
push 0
lea edx, [esp + 0x24]
push edx
call ebx
test eax, eax
jne 0x401d01
call ebp
mov edi, eax
call fcn.004349cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
push edi
lea eax, [esp + 0x34]
push str.CryptAcquireContext_err2:_0x_lX
push eax
mov byte [esp + 0x34], 1
call fcn.004015e0
mov edi, dword [esp + 0x3c]
add esp, 0xc
push 0
push 0
push edi
call fcn.004440be
push str.CryptAcquireContext_create
push 0x9e
push 0xb
mov ecx, esi
call fcn.00401640
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edi, edi
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
push edi
push ecx
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401d89
push 0x45fa14
push 0xb1
jmp 0x401db8
push str.CryptAcquireContext
push 0xa4
push 0xb
push str.Error__Action:__d___ErrorCodr0x_08X__s
add esi, 4
push esi
call fcn.004015e0
add esp, 0x14
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
shl eax, 0x10
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
or eax, 1
push eax
mov eax, dword [esi + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x401dcd
call ebp
push 0x45f9f0
push eax
push 0xb
push str.Error__Action:__d___ErrorCodr0x_08X__s
add esi, 4
push esi
call fcn.004015e0
add esp, 0x14
jmp 0x401e27
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp byte [esp + 0x30], 1
mov dword [esp + 0x10], edi
jne 0x401e05
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00401680
jmp 0x401e25
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004018e0
mov bl, al
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x401e36
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x401e45
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x401e55
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14