Function at 0x403ec0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
push str.___Encrypting_data
push 3
mov edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
call fcn.00408d60
add esp, 8
lea eax, [ebp - 0xc]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x403f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_opening_the_provider:0x_0X
push 1
call fcn.00408d60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x40
push 0
push dword [0x4db458]
push 0x4df140
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x403f7b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Error_getting_the_key:0x_0X
jmp 0x404039
push 0
push ebx
push esi
push 0x40
push 1
push 0
push dword [ebp - 8]
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40412f
call esi
cmp eax, 0xea
jne 0x404031
mov ebx, dword [ebx]
push ebx
push edi
push str.Initial_size:_d__buffer_size:_d
push 3
call fcn.00408d60
add esp, 0x10
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x14]
inc dword [0x4de7b4]
mov dword [ecx], eax
test eax, eax
jne 0x403fea
call esi
push eax
push str.Error_allocating_memory_for_buffer:0x_0X
push 1
call fcn.00408d60
mov ebx, dword [ebp - 0x10]
jmp 0x404040
test edi, edi
je 0x40400c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4040d8
cmp ebx, edi
jb 0x4040d8
push edi
push ecx
push eax
call fcn.004ae080
add esp, 0xc
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, eax
push ebx
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
push dword [eax]
push 0x40
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40412f
call esi
push eax
push str.Error_encrypting_data:0x_0X
push 1
call fcn.00408d60
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x404068
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
dec dword [0x4de7b4]
mov dword [eax], 0
mov dword [ebx], 0
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x40408f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x40408f
call esi
push eax
push str.Error_releasing_the_key:0x_0X
push 1
call fcn.00408d60
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x4040b6
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4040b6
call esi
push eax
push str.Error_releasing_the_provider:0x_0X
push 1
call fcn.00408d60
add esp, 0xc
push str.Encrypting_data___
push 3
call fcn.00408d60
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push ebx
push 0
push eax
call fcn.004ad600
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x404114
call fcn.004b3319
mov dword [eax], 0x16
call fcn.004b3238
mov eax, 0x16
push eax
push str.Error_copying_memory_for_buffer:0x_0X
push 1
call fcn.00408d60
mov ebx, dword [ebp - 0x10]
jmp 0x404040
cmp ebx, edi
jae 0x4040fa
call fcn.004b3319
mov dword [eax], 0x22
call fcn.004b3238
mov eax, 0x22
jmp 0x4040ff
mov ebx, 1
jmp 0x40406a