Function at 0x2d1abf5
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 3]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
movzx edx, byte [ecx + 4]
shl edx, 8
movzx esi, byte [ecx + 5]
xor edx, esi
movzx esi, byte [ecx + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [ecx + 7]
shl edx, 8
xor edx, esi
mov dword [eax + 4], edx
movzx edx, byte [ecx + 8]
movzx esi, byte [ecx + 9]
shl edx, 8
xor edx, esi
movzx esi, byte [ecx + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [ecx + 0xb]
shl edx, 8
xor edx, esi
mov dword [eax + 8], edx
movzx edx, byte [ecx + 0xc]
movzx esi, byte [ecx + 0xd]
shl edx, 8
xor edx, esi
movzx esi, byte [ecx + 0xe]
shl edx, 8
xor edx, esi
movzx esi, byte [ecx + 0xf]
shl edx, 8
xor edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x1c]
cmp edx, 0x80
jne 0x2d1adb7
mov esi, dword [eax + 0xc]
mov edx, esi
shr edx, 0x10
mov edi, esi
mov ecx, 0xff
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + 0x2d33b68]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + 0x2d33b68]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x10]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [esp + 0x1c], edx
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x1c]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x1c], edx
mov dword [esp + 0x14], 0x2d3536c
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0xc]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
and ebp, esi
xor edx, ebp
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
xor edx, dword [eax]
lea ebp, [eax + 0x10]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x14], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x2d35390
mov dword [eax + 0x1c], ebp
jne 0x2d1ad24
push 0xa
pop eax
jmp 0x2d1b0fd
movzx esi, byte [ecx + 0x10]
movzx edi, byte [ecx + 0x11]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x12]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x13]
shl esi, 8
xor esi, edi
mov dword [eax + 0x10], esi
movzx esi, byte [ecx + 0x14]
movzx edi, byte [ecx + 0x15]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x16]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x17]
shl esi, 8
xor esi, edi
mov dword [eax + 0x14], esi
cmp edx, 0xc0
jne 0x2d1af2e
mov edx, esi
shr edx, 0x10
mov edi, esi
mov ecx, 0xff
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + 0x2d33b68]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + 0x2d33b68]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x18]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x1c], ebp
mov ebp, dword [eax + 0xc]
xor ebp, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ebp
mov dword [esp + 0x14], 0x2d3536c
mov edx, dword [eax + 0x10]
xor edx, dword [eax + 0x24]
mov ebp, dword [eax + 0x14]
xor ebp, edx
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x28], edx
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0x14]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
and ebp, esi
xor edx, ebp
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
xor edx, dword [eax]
lea ebp, [eax + 0x18]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x1c], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x20], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x2d35388
mov dword [eax + 0x24], ebp
jne 0x2d1ae8b
push 0xc
jmp 0x2d1adb1
movzx esi, byte [ecx + 0x18]
movzx edi, byte [ecx + 0x19]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x1a]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x1b]
shl esi, 8
xor esi, edi
mov dword [eax + 0x18], esi
movzx esi, byte [ecx + 0x1c]
movzx edi, byte [ecx + 0x1d]
shl esi, 8
xor esi, edi
movzx edi, byte [ecx + 0x1e]
movzx ecx, byte [ecx + 0x1f]
shl esi, 8
xor esi, edi
shl esi, 8
xor esi, ecx
mov dword [eax + 0x1c], esi
cmp edx, 0x100
jne 0x2d1b0fb
mov edx, esi
shr edx, 0x10
mov edi, esi
mov ecx, 0xff
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + 0x2d33b68]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + 0x2d33b68]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x20]
mov dword [ebp], edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x24], ebp
mov ebp, dword [eax + 0xc]
xor ebp, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ebp
mov dword [esp + 0x14], 0x2d3536c
mov ebp, dword [eax + 0x2c]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 8
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
and ebp, esi
shr edx, 0x10
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x2d33b68]
and ebp, ebx
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
xor edx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
xor ebp, edx
mov dword [eax + 0x34], ebp
mov dword [eax + 0x30], edx
mov edx, dword [eax + 0x18]
xor edx, ebp
mov ebp, dword [eax + 0x1c]
xor ebp, edx
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x38], edx
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + 0x1c]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + 0x2d33b68]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x2d33b68]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + 0x2d33b68]
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
lea ebp, [eax + 0x20]
mov dword [ebp], edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x24], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x28], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x2d35384
mov dword [eax + 0x2c], ebp
jne 0x2d1b002
push 0xe
jmp 0x2d1adb1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret