Function at 0x4013b0
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, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4013e0
jmp 0x40157c
mov byte [ebp - 0x40], 8
mov byte [ebp - 0x3f], 2
xor ecx, ecx
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x3c], 0x6610
mov dword [ebp - 0x38], 0x20
mov ecx, 8
mov esi, 0x4044d0
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x2c
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x401439
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x40157c
mov dword [ebp - 0x14], 1
push 0
lea eax, [ebp - 0x14]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x401472
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x40157c
push 0
push 0x40441c
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x4014a5
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x40157c
mov dword [ebp - 0x48], 0x404480
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x48]
mov al, byte [edx]
mov byte [ebp - 0x41], al
add dword [ebp - 0x48], 1
cmp byte [ebp - 0x41], 0
jne 0x4014b5
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40150b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x40157c
mov ecx, dword [ebp - 0x10]
mov dword [0x404418], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x404480
push 0x404430
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x400
lea eax, [ebp - 0x10]
push eax
push 0x404430
push 0
push 1
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x401565
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x40157c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401625
mov esp, ebp
pop ebp
ret