Function at 0x403450
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4287dd
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x439018]
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 ebx, edx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0
lea edi, [ebp - 0x84]
mov eax, dword [ebp + 0x1c]
mov ecx, 0x1b
add eax, eax
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0xf0000000
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x84]
push 0x18
push eax
push 0
lea eax, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40359a
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40359a
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xa0], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x403518
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e7e1
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0xa0]
push esi
call fcn.004150db
add esp, 0xc
push 0
push dword [ebp - 0x9c]
push esi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403576
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
jmp 0x4036e4
lea eax, [ebp - 0x94]
push eax
push 0
push dword [ebp - 0x90]
push 0x660e
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x4035b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x88]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4036e4
push ebx
call fcn.00414e4d
add esp, 4
mov esi, eax
push ebx
push dword [ebp - 0x98]
push esi
call fcn.0040fd40
add esp, 0xc
push 0xa0
call fcn.0040e7e1
mov edx, dword [ebp - 0xa8]
xor edi, edi
add esp, 4
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], edi
test edx, edx
je 0x4036d8
mov eax, 0xa0
mov ecx, edx
sub eax, esi
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb0], eax
add eax, esi
mov ebx, 0xa0
cmp eax, edx
jb 0x403639
mov ebx, ecx
mov dword [ebp - 0x98], 1
push ebx
push esi
push dword [ebp - 0xa4]
mov dword [ebp - 0x8c], ebx
call fcn.0040fd40
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0xa4]
push 0
push dword [ebp - 0x98]
push 0
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4036d8
mov eax, dword [ebp - 0xac]
push dword [ebp - 0x8c]
push dword [ebp - 0xa4]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.0040fd40
add edi, dword [ebp - 0x8c]
add esp, 0xc
cmp ebx, 0xa0
jne 0x4036d8
mov edx, dword [ebp - 0x9c]
add esi, ebx
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, dword [ebp - 0xb0]
sub ecx, ebx
cmp edx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], ecx
jb 0x403622
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x403714
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40370a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403732
push edx
push ecx
call fcn.0040e7d3
add esp, 8
mov eax, edi
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.0040e593
mov esp, ebp
pop ebp
ret
call fcn.00412da7
int3