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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x401296
mov dword [edi + 0xf0], 0xe
mov eax, dword [str.Y2NDBiYzItNjQxOC00MGFiLWE3NWYtN2]
push esi
mov esi, eax
rol eax, 8
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov dword [edi], esi
mov ecx, dword [0x41a334]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [0x41a338]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 8], eax
mov ecx, dword [0x41a33c]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0xc], eax
mov ecx, dword [0x41a340]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0x10], eax
mov ecx, dword [0x41a344]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [0x41a348]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0x18], eax
mov eax, dword [0x41a34c]
mov edx, eax
rol eax, 8
and eax, 0xff00ff
ror edx, 8
and edx, 0xff00ff00
or edx, eax
mov eax, edx
mov dword [edi + 0x1c], edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x4178c8]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x4174c8]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.cc]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4170a0]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, esi
xor eax, ecx
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x24], eax
xor ecx, eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x30]
mov edi, 0x4174a4
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 0x20]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4174c8]
mov ecx, edx
shr ecx, 8
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4170a0]
and ecx, 0xff00
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4178c8]
and ecx, 0xff000000
xor esi, ecx
movzx ecx, dl
mov edx, dword [eax - 0x38]
movzx ecx, byte [ecx*4 + str.cc]
xor esi, ecx
mov ecx, dword [eax - 0x3c]
xor esi, dword [eax - 0x40]
xor ecx, esi
mov dword [eax - 0x20], esi
mov dword [eax - 0x1c], ecx
xor edx, ecx
mov ecx, dword [eax - 0x34]
xor ecx, edx
mov dword [eax - 0x18], edx
mov dword [eax - 0x14], ecx
mov edx, dword [eax - 0x14]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x4174c8]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4178c8]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.cc]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x4170a0]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 0x30]
xor esi, dword [edi]
add edi, 4
mov dword [eax - 0x10], esi
mov ecx, dword [eax - 0x2c]
xor ecx, esi
mov dword [eax - 0xc], ecx
mov edx, dword [eax - 0x28]
xor edx, ecx
mov dword [eax - 8], edx
mov ecx, dword [eax - 0x24]
xor ecx, edx
mov dword [eax - 4], ecx
cmp edi, 0x4174bc
jne 0x4011a0
pop esi
xor eax, eax
pop edi
pop ebp
ret
or eax, 0xffffffff
pop edi
pop ebp
ret