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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x14], 0xce680f98
mov dword [ebp - 0x10], 0x474c4377
mov dword [ebp - 0xc], 0x820ee9f9
mov dword [ebp - 8], 0xeb4c6bf4
mov dword [ebp - 0x34], 0x3085e035
mov dword [ebp - 0x30], 0xa3916d8a
mov dword [ebp - 0x2c], 0x37f25f96
mov dword [ebp - 0x28], 0x36cfd195
mov dword [ebp - 0x24], 0x5b7ede71
mov dword [ebp - 0x20], 0xfbd53862
mov dword [ebp - 0x1c], 0x4ba664db
mov dword [ebp - 0x18], 0x53055ad3
mov byte [edi], 0
call fcn.00631510
pop ecx
cmp eax, 1
jae 0x40b930
xor eax, eax
jmp 0x40ba7c
push ebx
push 0x3e8
lea eax, [ebp - 0x41c]
push eax
push esi
call fcn.00445e29
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40b95c
push esi
push str.DecryptMailbirdPassword
push str._s:_DecodeBase64Data_failed_to_decode_input_data__s
jmp 0x40ba71
push ebx
push esi
call fcn.00631510
pop ecx
push eax
push str.DecryptMailbirdPassword
push str._s:_DecodeBase64Data_Success___Input_length__d__Decoded_Length_d
call fcn.00449974
push 0x20
pop eax
push eax
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x448], 0x208
push eax
mov dword [ebp - 0x444], 0x6610
call fcn.006269d0
add esp, 0x1c
lea eax, [ebp - 0x454]
xor esi, esi
push 0xf0000000
push 0x18
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40b9d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptMailbirdPassword
push str._s:_CryptAcquireContext_failed__Error0x_.8x
jmp 0x40ba71
lea eax, [ebp - 0x450]
push eax
push esi
push esi
push 0x2c
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x454]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40ba0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptMailbirdPassword
push str._s:_CryptImportKey_failed__Error0x_.8x
jmp 0x40ba71
push esi
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x40ba36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptMailbirdPassword
push str._s:_CryptSetKeyParam_failed__Error0x_.8x
jmp 0x40ba71
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], ebx
push eax
lea eax, [ebp - 0x41c]
xor ebx, ebx
push eax
push ebx
push 1
push ebx
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40ba8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptMailbirdPassword
push str._s:_CryptDecrypt_failed__Error0x_.8x
call fcn.00449974
add esp, 0xc
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005fe955
leave
ret
mov eax, dword [ebp - 0x44c]
cmp eax, 0x3e8
jae 0x40bacd
push eax
mov byte [ebp + eax - 0x41c], bl
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x10]
push edi
call fcn.00631360
push edi
push dword [ebp - 0x44c]
push str.DecryptMailbirdPassword
push str._s:_Successfully_decrypted_the_password_of_size__d__password_is___s_
call fcn.00449974
xor eax, eax
add esp, 0x20
inc eax
jmp 0x40ba7b
call fcn.005fe87a
int3