Function at 0x40dbfa
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, 0x434
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0x206
lea eax, [esi - 1]
mov dword [ebp - 0x10], 0xa400
mov dword [ebp - 0xc], 0x31415352
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x24], 0x10001
mov dword [ebp - 0x20], 0x434f2467
mov dword [ebp - 0x1c], 0xf262676e
mov dword [ebp - 0x18], 0x4d7a85e
push esi
cmp eax, 0x63
ja 0x40dde6
push ecx
lea eax, [ebp - 0x40c]
push eax
call fcn.006269d0
push 0x10
pop eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x428], 0x208
push eax
mov dword [ebp - 0x424], 0x660e
call fcn.006269d0
add esp, 0x18
lea eax, [ebp - 0x434]
push 0xf0000000
push 0x18
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40dcce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptTeamviewerPassword
push str._s:_CryptAcquireContext_failed__Error0x_.8x
jmp 0x40ddf0
lea eax, [ebp - 0x42c]
push eax
push ebx
push ebx
push 0x1c
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40dd06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptTeamviewerPassword
push str._s:_CryptImportKey_failed__Error0x_.8x
jmp 0x40ddf0
push ebx
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x40dd33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptTeamviewerPassword
push str._s:_CryptSetKeyParam_failed__Error0x_.8x
jmp 0x40ddf0
push esi
push str.DecryptTeamviewerPassword
push str._s:_Decrypting_encoded_password_of_size__d
call fcn.00449974
lea eax, [ebp - 0x40c]
push esi
push eax
call fcn.004498ca
add esp, 0x14
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40dda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DecryptTeamviewerPassword
push str._s:_CryptDecrypt_failed__Error0x_.8x
call fcn.00449974
lea eax, [ebp - 0x40c]
push 0x10
push eax
call fcn.004498ca
add esp, 0x14
jmp 0x40ddf8
mov eax, dword [ebp - 0x430]
cmp eax, 0x3e8
jae 0x40de09
push eax
push str.DecryptTeamviewerPassword
push str._n_s:__Successfully_decrypted_the_password___d_
mov byte [ebp + eax - 0x40c], bl
call fcn.00449974
add esp, 0xc
lea ecx, [ebp - 0x40c]
push ebx
push ebx
push dword [ebp + 0x14]
push edi
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
inc eax
jmp 0x40ddfa
push str.DecryptTeamviewerPassword
push str._s:_Invalid_encrypted_data_size___d_...returning
call fcn.00449974
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
call fcn.005fe87a
int3