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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov ecx, edx
lea eax, [esi + 4]
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov ebx, ecx
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
cmp dword [ebp + 0x10], 0x80
mov dword [esi + 0xc], ebx
jne 0x405933
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov edi, 0x5212f4
mov edx, dword [ecx*4 + str.ccccwwww]
xor edx, 0x1000000
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
and edx, 0xff000000
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
xor edx, dword [esi]
mov ecx, dword [eax]
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
xor ecx, edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
add edi, 4
mov esi, dword [ecx*4 + str.ccccwwww]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
and esi, 0xff0000
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi - 4]
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x521318
jne 0x4058a1
pop edi
pop esi
mov eax, 0xa
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x10]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [edi + 0x14]
mov ebx, ecx
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
cmp dword [ebp + 0x10], 0xc0
lea ecx, [esi + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ecx], ebx
jne 0x405aa8
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, dword [eax]
mov edx, dword [ecx*4 + str.ccccwwww]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor edx, 0x1000000
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
and edx, 0xff000000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
mov edi, 0x5212f4
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
xor edx, dword [esi]
mov ecx, dword [esi + 8]
xor eax, edx
xor ecx, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x18], edx
lea edx, [esi + 0x24]
xor eax, ecx
mov dword [esi + 0x20], ecx
mov dword [edx], eax
add esi, 0x28
lea esp, [esp]
mov ecx, dword [esi - 0x18]
xor ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov dword [esi], ecx
mov eax, dword [eax]
xor eax, ecx
mov dword [esi + 4], eax
lea esi, [esi + 0x18]
add edi, 4
mov ecx, dword [esi - 0x14]
lea eax, [esi - 0x14]
mov dword [ebp + 0xc], eax
mov eax, ecx
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
and edx, 0xff0000
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 0x28]
xor edx, dword [edi - 4]
mov dword [esi - 0x10], edx
mov eax, dword [esi - 0x24]
xor eax, edx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x20]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x1c]
lea edx, [esi - 4]
xor eax, ecx
mov dword [edx], eax
cmp edi, 0x521310
jne 0x405a00
pop edi
pop esi
mov eax, 0xc
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 0x18], ecx
mov ecx, dword [edi + 0x1c]
mov ebx, ecx
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
cmp dword [ebp + 0x10], 0x100
lea ecx, [esi + 0x1c]
mov dword [ebp + 0xc], ecx
mov dword [ecx], ebx
jne 0x405c79
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov eax, dword [eax]
mov edx, dword [ecx*4 + str.ccccwwww]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor edx, 0x1000000
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
and edx, 0xff000000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
mov edi, 0x5212f4
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
xor edx, dword [esi]
mov ecx, dword [esi + 8]
xor eax, edx
xor ecx, eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x2c]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [edx], eax
add esi, 0x30
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
lea esi, [esi + 0x20]
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 8
and eax, 0xff
and edx, 0xff0000
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
mov eax, ecx
shr eax, 0x18
add edi, 4
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff000000
xor edx, eax
movzx eax, cl
mov ecx, dword [esi - 0x38]
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
xor edx, dword [esi - 0x40]
mov eax, dword [esi - 0x3c]
xor eax, edx
mov dword [esi - 0x1c], eax
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esi - 0x20], edx
mov eax, dword [eax]
xor eax, ecx
mov dword [esi - 0x14], eax
mov dword [esi - 0x18], ecx
mov ecx, dword [esi - 0x14]
lea eax, [esi - 0x14]
mov dword [ebp + 0xc], eax
mov eax, ecx
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
and edx, 0xff0000
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 0x30]
xor edx, dword [edi - 4]
mov dword [esi - 0x10], edx
mov eax, dword [esi - 0x2c]
xor eax, edx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x28]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x24]
lea edx, [esi - 4]
xor eax, ecx
mov dword [edx], eax
cmp edi, 0x52130c
jne 0x405b71
pop edi
pop esi
mov eax, 0xe
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret