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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 0x10]
push ebx
xor edx, dword [eax]
mov ebx, dword [ecx + 0x1c]
xor ebx, dword [eax + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x18]
xor edx, dword [eax + 8]
mov dword [ebp - 0x24], edx
movzx eax, dl
mov dword [ebp - 0x18], edx
movzx edx, bh
push esi
mov eax, dword [eax*4 + 0x57b4c0]
push edi
xor eax, dword [edx*4 + 0x57b8c0]
mov edi, dword [ecx]
add ecx, 0x20
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 0x2a]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
xor edx, dword [eax*4 + 0x57bcc0]
movzx eax, byte [ebp - 0x25]
xor edx, dword [eax*4 + 0x57c0c0]
xor edx, dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
movzx eax, al
movzx edx, dh
mov eax, dword [eax*4 + 0x57b4c0]
xor eax, dword [edx*4 + 0x57b8c0]
mov dword [ebp + 8], eax
movzx eax, byte [ebp - 0x22]
mov edx, dword [ebp + 8]
xor edx, dword [eax*4 + 0x57bcc0]
movzx eax, byte [ebp - 0x1d]
xor edx, dword [eax*4 + 0x57c0c0]
xor edx, dword [ecx]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x14]
movzx eax, bl
movzx edx, dh
mov ebx, dword [eax*4 + 0x57b4c0]
xor ebx, dword [edx*4 + 0x57b8c0]
movzx eax, byte [ebp - 0x26]
mov edx, dword [ebp - 0x18]
movzx edx, dh
xor ebx, dword [eax*4 + 0x57bcc0]
movzx eax, byte [ebp - 0x21]
xor ebx, dword [eax*4 + 0x57c0c0]
mov eax, dword [ebp - 0x10]
xor ebx, dword [ecx + 0xc]
movzx eax, al
mov dword [ebp - 4], ebx
mov eax, dword [eax*4 + 0x57b4c0]
xor eax, dword [edx*4 + 0x57b8c0]
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 0x1e]
mov edx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x57bcc0]
movzx eax, byte [ebp - 0x29]
xor edx, dword [eax*4 + 0x57c0c0]
xor edx, dword [ecx + 4]
mov dword [ebp - 8], edx
dec edi
je 0x46e306
shr edx, 0x18
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x57c0c0]
xor edx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x57bcc0]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor edx, dword [eax*4 + 0x57b4c0]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x14], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp - 0xc]
xor ebx, dword [edx*4 + 0x57c0c0]
shr eax, 0x10
movzx eax, al
xor ebx, dword [eax*4 + 0x57bcc0]
mov eax, dword [ebp + 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x57b4c0]
mov eax, dword [ebp - 8]
xor ebx, dword [ecx + 0x10]
shr eax, 0x10
movzx edx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x57bcc0]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
xor edx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor edx, dword [eax*4 + 0x57c0c0]
movzx eax, bl
shr ebx, 0x10
xor edx, dword [eax*4 + 0x57b4c0]
xor edx, dword [ecx + 0x1c]
movzx eax, bl
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
shr edx, 0x18
mov ebx, dword [eax*4 + 0x57bcc0]
mov eax, dword [ebp - 0xc]
shr eax, 8
xor ebx, dword [edx*4 + 0x57c0c0]
movzx eax, al
xor ebx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp - 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x57b4c0]
xor ebx, dword [ecx + 0x14]
add ecx, 0x20
mov eax, ebx
sar eax, 0x18
movzx edx, al
mov eax, dword [ebp - 0x18]
sar eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x57c0c0]
xor edx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp - 0x10]
sar eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x57bcc0]
mov eax, dword [ebp - 0x14]
movzx eax, al
xor edx, dword [eax*4 + 0x57b4c0]
mov eax, ebx
xor edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
sar eax, 8
movzx edx, al
mov eax, dword [ebp - 0x18]
sar eax, 0x18
movzx eax, al
mov edx, dword [edx*4 + 0x57b8c0]
xor edx, dword [eax*4 + 0x57c0c0]
mov eax, dword [ebp - 0x14]
sar eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x57bcc0]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor edx, dword [eax*4 + 0x57b4c0]
mov eax, ebx
xor edx, dword [ecx]
sar eax, 0x10
mov dword [ebp + 8], edx
movzx edx, al
mov eax, dword [ebp - 0x10]
sar eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x57bcc0]
xor edx, dword [eax*4 + 0x57b8c0]
mov eax, dword [ebp - 0x14]
sar eax, 0x18
movzx eax, al
xor edx, dword [eax*4 + 0x57c0c0]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
movzx eax, dl
sar edx, 0x10
movzx edx, dl
xor esi, dword [eax*4 + 0x57b4c0]
mov eax, esi
mov dword [ebp - 4], esi
xor eax, dword [ecx + 0xc]
mov edx, dword [edx*4 + 0x57bcc0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
movzx eax, al
xor edx, dword [eax*4 + 0x57c0c0]
mov eax, dword [ebp - 0x14]
sar eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x57b8c0]
movzx eax, bl
mov ebx, dword [ebp - 4]
xor edx, dword [eax*4 + 0x57b4c0]
xor edx, dword [ecx + 4]
mov dword [ebp - 8], edx
dec edi
jne 0x46e0f7
mov eax, ebx
mov edi, dword [ebp - 0x1c]
shr eax, 0x18
mov ebx, dword [ebp - 0xc]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp + 8]
xor edx, dword [ecx + 0x10]
shr eax, 0x18
mov dword [edi], edx
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
xor edx, dword [ecx + 0x14]
shr eax, 0x18
mov dword [edi + 4], edx
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
xor edx, dword [ecx + 0x18]
shr eax, 0x10
movzx eax, al
mov dword [edi + 8], edx
movzx edx, byte [ebx + str.cw]
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
xor edx, dword [ecx + 0x1c]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret