For example of xor-el I found this example.
https://forum.lazarus.freepascal.org/index.php/topic,44746.msg314966.html#msg314966
But there is no decrypt.
Ok we need to get some factors clear before I might be able to help you.
Do you have any code samples you are trying to replicate?
The reason I ask this is that there are a lot of factors in play that will affect the output like the Padding Mode been used if the plaintext cannot be evenly divided into the AES blocksize which is 128bits.
I will ask you a few questions that will help me give you an appropriate example.
1. What padding mode do you wish to use? PKCS7 is normally encouraged but I ask this for compatibility purposes incase you have a sample you are trying to replicate.
2. Chaining Mode (a popular option is CBC Mode)
3. What is your IV (must be 16 bytes for CBC Mode)
4. What is your Key (for AES 256, it must be 32 bytes).
5. The plaintext you want to encrypt.
6. How do you want the encrypted output. (I presume Base64 Encoded).
7. I will have to use Cryptolib4Pascal since I am more comfortable with it. (Are you ok with that?)