Function at 0x404f60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x14
mov eax, dword [0x40c380]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x1c]
push edi
mov edi, dword [esp + 0x28]
mov ebx, dword [edi]
lea edx, [eax + 2]
shl edx, 4
mov edx, dword [edx + ecx]
xor edx, ebx
shl eax, 4
mov ebx, dword [eax + ecx + 0x24]
lea esi, [eax + ecx]
mov eax, dword [edi + 4]
mov edi, dword [esi + 0x28]
xor ebx, eax
mov eax, dword [esp + 0x28]
mov ebp, dword [eax + 8]
mov eax, dword [esi + 0x2c]
mov esi, dword [esp + 0x28]
xor edi, ebp
mov dword [esp + 0x18], edi
xor eax, dword [esi + 0xc]
movzx edi, byte [esp + 0x1a]
mov ebp, dword [edi*4 + 0x40a970]
mov dword [esp + 0x1c], eax
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + 0x40ad70]
xor esi, ebp
movzx eax, ah
xor esi, dword [eax*4 + 0x40a570]
movzx eax, dl
mov edi, dword [eax*4 + 0x40a170]
mov eax, dword [esp + 0x2c]
xor esi, edi
movzx edi, byte [esp + 0x1e]
mov dword [eax], esi
mov ebp, dword [edi*4 + 0x40a970]
mov esi, dword [esp + 0x18]
shr esi, 0x18
mov esi, dword [esi*4 + 0x40ad70]
mov dword [esp + 0x10], edx
xor esi, ebp
movzx edx, dh
xor esi, dword [edx*4 + 0x40a570]
movzx edx, bl
mov edi, dword [edx*4 + 0x40a170]
mov edx, dword [esp + 0x1c]
xor esi, edi
mov dword [eax + 4], esi
movzx esi, byte [esp + 0x12]
mov ebp, dword [esi*4 + 0x40a970]
shr edx, 0x18
mov edi, dword [edx*4 + 0x40ad70]
movzx edx, bh
mov esi, dword [edx*4 + 0x40a570]
mov edx, dword [esp + 0x18]
xor edi, ebp
xor edi, esi
movzx esi, dl
mov ebp, dword [esi*4 + 0x40a170]
movzx esi, byte [esp + 0x13]
xor edi, ebp
mov dword [eax + 8], edi
mov esi, dword [esi*4 + 0x40ad70]
mov dword [esp + 0x14], ebx
movzx edi, byte [esp + 0x16]
mov ebx, dword [edi*4 + 0x40a970]
movzx edx, dh
mov ebp, dword [edx*4 + 0x40a570]
movzx edx, byte [esp + 0x1c]
xor esi, ebx
mov ebx, dword [edx*4 + 0x40a170]
xor esi, ebp
xor esi, ebx
mov dword [eax + 0xc], esi
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x4051bc
mov esi, edx
shl esi, 4
dec edx
lea esi, [esi + ecx + 0x24]
mov dword [esp + 0x28], edx
mov edx, dword [esi - 4]
xor edx, dword [eax]
mov edi, dword [esi]
xor edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 4]
xor edi, ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x18], edi
mov edi, dword [eax + 0xc]
movzx ebp, byte [esp + 0x1a]
xor ebx, edi
mov edi, dword [esp + 0x14]
shr edi, 0x18
mov edi, dword [edi*4 + 0x40ad70]
xor edi, dword [ebp*4 + 0x40a970]
movzx ebp, bh
xor edi, dword [ebp*4 + 0x40a570]
movzx ebp, dl
xor edi, dword [ebp*4 + 0x40a170]
mov dword [esp + 0x10], edx
mov dword [eax], edi
mov edi, dword [esp + 0x18]
shr edi, 0x18
mov edi, dword [edi*4 + 0x40ad70]
movzx edx, dh
mov dword [esp + 0x1c], ebx
movzx ebp, byte [esp + 0x1e]
xor edi, dword [ebp*4 + 0x40a970]
mov ebp, dword [edx*4 + 0x40a570]
mov edx, dword [esp + 0x14]
xor edi, ebp
movzx ebp, dl
xor edi, dword [ebp*4 + 0x40a170]
movzx ebp, byte [esp + 0x12]
mov dword [eax + 4], edi
movzx edx, dh
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x40ad70]
xor edi, dword [ebp*4 + 0x40a970]
mov ebp, dword [edx*4 + 0x40a570]
mov edx, dword [esp + 0x18]
xor edi, ebp
movzx ebp, dl
xor edi, dword [ebp*4 + 0x40a170]
movzx ebp, byte [esp + 0x16]
mov dword [eax + 8], edi
movzx edi, byte [esp + 0x13]
mov edi, dword [edi*4 + 0x40ad70]
xor edi, dword [ebp*4 + 0x40a970]
movzx edx, dh
mov ebp, dword [edx*4 + 0x40a570]
movzx edx, bl
mov ebx, dword [edx*4 + 0x40a170]
mov edx, dword [esp + 0x28]
xor edi, ebp
xor edi, ebx
sub esi, 0x10
dec edx
mov dword [eax + 0xc], edi
mov dword [esp + 0x28], edx
jne 0x4050b1
mov esi, dword [ecx + 0x34]
mov edx, dword [ecx + 0x30]
mov ebx, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebp, dword [eax]
xor esi, ebx
xor edx, ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x38]
xor esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 0x3c]
xor esi, ebp
mov dword [esp + 0x1c], esi
movzx esi, dl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x1d]
mov byte [eax], bl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x1a]
mov byte [eax + 1], bl
mov bl, byte [esi + 0x40b170]
mov esi, dword [esp + 0x14]
mov byte [eax + 2], bl
mov dword [esp + 0x10], edx
shr esi, 0x18
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x14]
mov byte [eax + 3], bl
mov bl, byte [esi + 0x40b170]
mov byte [eax + 4], bl
movzx edx, dh
mov dl, byte [edx + 0x40b170]
mov byte [eax + 5], dl
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edx, dl
mov dl, byte [edx + 0x40b170]
mov byte [eax + 6], dl
mov edx, dword [esp + 0x18]
shr edx, 0x18
mov dl, byte [edx + 0x40b170]
mov byte [eax + 7], dl
mov edx, dword [esp + 0x18]
movzx esi, dl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x15]
mov byte [eax + 8], bl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x12]
mov byte [eax + 9], bl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x1f]
mov byte [eax + 0xa], bl
mov bl, byte [esi + 0x40b170]
movzx esi, byte [esp + 0x1c]
mov byte [eax + 0xb], bl
mov bl, byte [esi + 0x40b170]
mov edi, dword [eax + 4]
movzx edx, dh
mov byte [eax + 0xc], bl
mov dl, byte [edx + 0x40b170]
mov ebx, dword [eax]
mov esi, dword [eax + 8]
mov byte [eax + 0xd], dl
movzx edx, byte [esp + 0x16]
mov dl, byte [edx + 0x40b170]
mov byte [eax + 0xe], dl
movzx edx, byte [esp + 0x13]
mov dl, byte [edx + 0x40b170]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ecx + 0x24]
xor edi, edx
mov dword [eax + 4], edi
mov edx, dword [ecx + 0x28]
xor esi, edx
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0x2c]
mov edx, dword [eax + 0xc]
pop edi
pop esi
xor edx, ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [eax + 0xc], edx
pop ebx
call fcn.00406674
add esp, 0x14
ret 8