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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
lea esi, [esp + 8]
lea edi, [esp + 0x28]
mov edx, edi
mov eax, dword [esp]
mov ecx, 0x10
call fcn.00402e8c
mov eax, dword [ebx + 0x6c]
cmp eax, 2
jl 0x45c767
mov ecx, dword [edi]
mov edx, eax
add edx, edx
add edx, edx
xor ecx, dword [ebx + edx*8 + 0x250]
mov dword [esi], ecx
lea ecx, [edi + 4]
mov ecx, dword [ecx]
xor ecx, dword [ebx + edx*8 + 0x254]
lea ebp, [esi + 4]
mov dword [ebp], ecx
lea ecx, [edi + 8]
mov ecx, dword [ecx]
xor ecx, dword [ebx + edx*8 + 0x258]
lea ebp, [esi + 8]
mov dword [ebp], ecx
lea ecx, [edi + 0xc]
mov ecx, dword [ecx]
xor ecx, dword [ebx + edx*8 + 0x25c]
lea edx, [esi + 0xc]
mov dword [edx], ecx
movzx edx, byte [esi]
lea edx, [edx*4 + 0x4668b8]
mov edx, dword [edx]
movzx ecx, byte [esi + 0xd]
lea ecx, [ecx*4 + 0x466cb8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 0xa]
lea ecx, [ecx*4 + 0x4670b8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 7]
lea ecx, [ecx*4 + 0x4674b8]
xor edx, dword [ecx]
mov dword [edi], edx
movzx edx, byte [esi + 4]
lea edx, [edx*4 + 0x4668b8]
mov edx, dword [edx]
movzx ecx, byte [esi + 1]
lea ecx, [ecx*4 + 0x466cb8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 0xe]
lea ecx, [ecx*4 + 0x4670b8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 0xb]
lea ecx, [ecx*4 + 0x4674b8]
xor edx, dword [ecx]
lea ecx, [edi + 4]
mov dword [ecx], edx
movzx edx, byte [esi + 8]
lea edx, [edx*4 + 0x4668b8]
mov edx, dword [edx]
movzx ecx, byte [esi + 5]
lea ecx, [ecx*4 + 0x466cb8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 2]
lea ecx, [ecx*4 + 0x4670b8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 0xf]
lea ecx, [ecx*4 + 0x4674b8]
xor edx, dword [ecx]
lea ecx, [edi + 8]
mov dword [ecx], edx
movzx edx, byte [esi + 0xc]
lea edx, [edx*4 + 0x4668b8]
mov edx, dword [edx]
movzx ecx, byte [esi + 9]
lea ecx, [ecx*4 + 0x466cb8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 6]
lea ecx, [ecx*4 + 0x4670b8]
xor edx, dword [ecx]
movzx ecx, byte [esi + 3]
lea ecx, [ecx*4 + 0x4674b8]
xor edx, dword [ecx]
lea ecx, [edi + 0xc]
mov dword [ecx], edx
dec eax
cmp eax, 1
jne 0x45c637
mov eax, dword [edi]
xor eax, dword [ebx + 0x270]
mov dword [esi], eax
lea eax, [edi + 4]
mov eax, dword [eax]
xor eax, dword [ebx + 0x274]
lea edx, [esi + 4]
mov dword [edx], eax
lea eax, [edi + 8]
mov eax, dword [eax]
xor eax, dword [ebx + 0x278]
lea edx, [esi + 8]
mov dword [edx], eax
lea eax, [edi + 0xc]
mov eax, dword [eax]
xor eax, dword [ebx + 0x27c]
lea edx, [esi + 0xc]
mov dword [edx], eax
movzx eax, byte [esi]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi], al
movzx eax, byte [esi + 0xd]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 1], al
movzx eax, byte [esi + 0xa]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 2], al
movzx eax, byte [esi + 7]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 3], al
movzx eax, byte [esi + 4]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 4], al
movzx eax, byte [esi + 1]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 5], al
movzx eax, byte [esi + 0xe]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xb]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 7], al
movzx eax, byte [esi + 8]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 8], al
movzx eax, byte [esi + 5]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 9], al
movzx eax, byte [esi + 2]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0xf]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xc], al
movzx eax, byte [esi + 9]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xd], al
movzx eax, byte [esi + 6]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 3]
movzx eax, byte [eax + 0x4678b8]
mov byte [edi + 0xf], al
mov eax, dword [ebx + 0x250]
xor dword [edi], eax
lea eax, [edi + 4]
mov edx, dword [ebx + 0x254]
xor dword [eax], edx
lea eax, [edi + 8]
mov edx, dword [ebx + 0x258]
xor dword [eax], edx
lea eax, [edi + 0xc]
mov edx, dword [ebx + 0x25c]
xor dword [eax], edx
mov edx, dword [esp + 4]
mov eax, edi
mov ecx, 0x10
call fcn.00402e8c
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret