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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [edx + 0x10]
xor esi, dword [ecx]
push edi
mov dword [eax], esi
mov esi, dword [ecx + 4]
xor esi, dword [edx + 0x14]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
xor esi, dword [edx + 0x18]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0xc]
xor ecx, dword [edx + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, 1
cmp dword [edx + 0xc], ecx
mov dword [esp + 0x10], ecx
jle 0x404820
lea ebx, [edx + 0x24]
movzx edx, byte [eax + 5]
mov ecx, dword [edx*4 + 0x42ffb0]
movzx esi, byte [eax + 0xf]
xor ecx, dword [esi*4 + 0x4307b0]
movzx edx, byte [eax]
xor ecx, dword [edx*4 + 0x42fbb0]
movzx edx, byte [eax + 0xa]
xor ecx, dword [edx*4 + 0x4303b0]
movzx edx, byte [eax + 3]
mov edx, dword [edx*4 + 0x4307b0]
movzx esi, byte [eax + 0xe]
xor edx, dword [esi*4 + 0x4303b0]
movzx esi, byte [eax + 4]
xor edx, dword [esi*4 + 0x42fbb0]
movzx esi, byte [eax + 9]
xor edx, dword [esi*4 + 0x42ffb0]
movzx esi, byte [eax + 8]
mov esi, dword [esi*4 + 0x42fbb0]
movzx edi, byte [eax + 7]
xor esi, dword [edi*4 + 0x4307b0]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x4303b0]
movzx edi, byte [eax + 0xd]
xor esi, dword [edi*4 + 0x42ffb0]
movzx edi, byte [eax + 1]
mov edi, dword [edi*4 + 0x42ffb0]
movzx ebp, byte [eax + 0xb]
xor edi, dword [ebp*4 + 0x4307b0]
movzx ebp, byte [eax + 6]
xor edi, dword [ebp*4 + 0x4303b0]
xor ecx, dword [ebx - 4]
movzx ebp, byte [eax + 0xc]
xor edi, dword [ebp*4 + 0x42fbb0]
xor edx, dword [ebx]
xor esi, dword [ebx + 4]
xor edi, dword [ebx + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
add ecx, 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
add ebx, 0x10
cmp ecx, dword [edx + 0xc]
mov dword [esp + 0x10], ecx
jl 0x404740
xor ebx, ebx
shl ecx, 4
add ecx, edx
movzx edx, byte [eax + 0xf]
mov bh, byte [edx + str.cw]
movzx edx, byte [eax + 0xa]
mov bl, byte [edx + str.cw]
movzx edx, byte [eax + 5]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
xor ebx, dword [ecx + 0x10]
movzx edx, byte [eax + 3]
mov esi, ebx
xor ebx, ebx
mov bh, byte [edx + str.cw]
movzx edx, byte [eax + 0xe]
mov bl, byte [edx + str.cw]
movzx edx, byte [eax + 9]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 4]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
xor ebx, dword [ecx + 0x14]
movzx edx, byte [eax + 7]
mov edi, ebx
xor ebx, ebx
mov bh, byte [edx + str.cw]
movzx edx, byte [eax + 2]
mov bl, byte [edx + str.cw]
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 8]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
xor ebx, dword [ecx + 0x18]
movzx edx, byte [eax + 0xb]
mov ebp, ebx
xor ebx, ebx
mov bh, byte [edx + str.cw]
movzx edx, byte [eax + 6]
mov bl, byte [edx + str.cw]
movzx edx, byte [eax + 1]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 0xc]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
xor ebx, dword [ecx + 0x1c]
mov dword [eax + 4], edi
pop edi
mov dword [eax], esi
pop esi
mov ecx, ebx
mov dword [eax + 8], ebp
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
pop ecx
ret