Function at 0x403e90
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x20
lea eax, [ebp - 0x30]
mov dword [ebp - 0x84], 0x208
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], 0x6610
push eax
mov dword [ebp - 0x7c], 0x20
mov dword [ebp - 0x30], 0xe274bf91
mov dword [ebp - 0x2c], 0xf910e678
mov dword [ebp - 0x28], 0x28ddc4
mov dword [ebp - 0x24], 0x1ff7c577
mov dword [ebp - 0x20], 0xc9b22157
mov dword [ebp - 0x1c], 0x1459d4b8
mov dword [ebp - 0x18], 0xc061536c
mov dword [ebp - 0x14], 0xdf7c977e
mov dword [ebp - 0x40], 0x28ddc4
mov dword [ebp - 0x3c], 0x1ff7c577
mov dword [ebp - 0x38], 0x17502482
mov dword [ebp - 0x34], 0xe6399091
call fcn.00550b70
add esp, 0xc
lea eax, [ebp - 0x90]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403fa9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x80090016
jne 0x4040db
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.NVCryptoTestContainer
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4040db
call esi
push eax
push str.Error_in_AcquireContext_0x_08x__n
call fcn.0054af9e
add esp, 8
jmp 0x4040db
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0x2c
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4040db
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4040cf
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x40400a
xor ecx, ecx
jmp 0x40401f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404010
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004042a0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00403ab0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov esi, dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push esi
push eax
push edi
call fcn.00550b70
add esp, 0xc
mov dword [ebp - 0x88], esi
lea eax, [ebp - 0x88]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40409b
mov eax, dword [ebp - 0x88]
push edi
push str.decrypted_looks_like:__s
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x88]
mov byte [edi + eax + 1], 0
call fcn.0054af9e
add esp, 8
cmp dword [ebp - 0x44], 0x10
jb 0x4040ac
push dword [ebp - 0x58]
call fcn.0041f7c3
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x4040cf
push dword [ebp - 0x28]
call fcn.0041f7c3
add esp, 4
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret