Function at 0x412410
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [eax + 0x1c]
push ebx
mov ebx, ecx
xor edx, dword [ebx + 0xc]
mov ecx, dword [eax]
push esi
mov esi, dword [eax + 0x10]
xor esi, dword [ebx]
push edi
mov edi, dword [eax + 0x14]
xor edi, dword [ebx + 4]
add eax, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 8]
mov dword [ebp - 0x28], esi
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov dword [ebp - 8], esi
mov esi, dword [ebx*4 + 0x433f00]
mov ebx, dword [ebp - 8]
xor esi, dword [ebx*4 + 0x434300]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x434700]
mov dword [ebp - 0x24], edi
shr edi, 8
mov ebx, ecx
and ebx, 0xff
xor esi, dword [ebx*4 + 0x433b00]
and edi, 0xff
mov dword [ebp - 8], edi
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [ebx*4 + 0x434300]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x433f00]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
mov ebx, dword [ebp - 0x28]
xor edi, dword [eax + 0x10]
add eax, 0x10
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x24]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x434300]
shr ebx, 8
xor esi, dword [eax + 8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433f00]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, edx
shr edx, 0x10
shr ecx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x434300]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x433f00]
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x434700]
mov ecx, dword [ebp - 0x24]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x433b00]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
sub dword [ebp - 4], 1
je 0x4127a0
jmp 0x412570
mov ebx, dword [ebp - 0x18]
shr ebx, 0x10
and ebx, 0xff
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x433f00]
xor ecx, dword [ebx*4 + 0x434300]
mov ebx, edx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x434700]
mov ebx, esi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x433b00]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov dword [ebp - 8], esi
mov esi, dword [ebx*4 + 0x433f00]
mov ebx, dword [ebp - 8]
xor esi, dword [ebx*4 + 0x434300]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x434700]
mov ebx, dword [ebp - 0x18]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x433b00]
mov ebx, dword [ebp - 0x18]
shr ebx, 8
and ebx, 0xff
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x434300]
xor edx, dword [ebx*4 + 0x433f00]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x434700]
mov ebx, edi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x433b00]
mov ebx, dword [ebp - 0x10]
shr edi, 0x10
xor edx, dword [eax + 0x1c]
and edi, 0xff
mov edi, dword [edi*4 + 0x434300]
xor esi, dword [eax + 0x10]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433f00]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, dword [ebp - 0x14]
xor ecx, dword [eax + 0x18]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
mov ebx, esi
xor edi, dword [eax + 0x14]
shr ebx, 0x10
mov dword [ebp - 0x24], edi
mov edi, edx
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x433f00]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x434300]
mov ebx, dword [ebp - 0x24]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
mov ebx, dword [ebp - 0x24]
xor edi, dword [eax + 0x28]
add eax, 0x20
mov dword [ebp - 0x10], edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x434300]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433f00]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
mov ebx, esi
xor edi, dword [eax]
shr ebx, 8
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x24]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x434300]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433f00]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434700]
mov ebx, edx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x434300]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x433f00]
mov ecx, dword [ebp - 0x24]
shr esi, 0x18
xor edx, dword [esi*4 + 0x434700]
mov esi, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x433b00]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433b00]
xor edx, dword [eax + 4]
xor edi, dword [eax + 0xc]
sub dword [ebp - 4], 1
mov dword [ebp - 0x14], edx
jne 0x412570
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
or ecx, ebx
shl ecx, 8
mov ebx, edx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
or ecx, ebx
mov ebx, dword [ebp - 0x18]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
or ecx, ebx
xor ecx, dword [eax + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebx], ecx
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
add eax, 0x10
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
or ecx, ebx
shl ecx, 8
mov ebx, esi
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
or ecx, ebx
shl ecx, 8
mov ebx, edx
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
or ecx, ebx
xor ecx, dword [eax + 4]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
or ecx, ebx
shl ecx, 8
mov ebx, edi
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
or ecx, ebx
mov ebx, esi
shl ecx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
or ecx, ebx
xor ecx, dword [eax + 8]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], ecx
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + str.cw]
shr esi, 0x18
movzx ecx, byte [esi + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
shl edx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
or edx, ecx
and edi, 0xff
movzx ecx, byte [edi + str.cw]
shl edx, 8
or edx, ecx
xor edx, dword [eax + 0xc]
pop edi
pop esi
mov dword [ebx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret 4