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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [eax + 2]
push edi
shl eax, 4
add eax, ecx
shl edx, 4
mov edi, dword [eax + 0x24]
mov ebx, dword [eax + 0x28]
xor edi, dword [esi + 4]
mov edx, dword [edx + ecx]
xor ebx, dword [esi + 8]
mov eax, dword [eax + 0x2c]
xor edx, dword [esi]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
movzx esi, byte [ebp - 9]
movzx edi, byte [ebp - 6]
mov esi, dword [esi*4 + 0x419680]
mov dword [ebp - 4], eax
xor esi, dword [edi*4 + 0x419280]
mov dword [ebp - 0x10], edx
movzx eax, ah
movzx edi, byte [ebp - 2]
xor esi, dword [eax*4 + 0x418e80]
movzx eax, dl
movzx edx, dh
xor esi, dword [eax*4 + 0x418a80]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
movzx esi, byte [ebp - 5]
mov esi, dword [esi*4 + 0x419680]
xor esi, dword [edi*4 + 0x419280]
xor esi, dword [edx*4 + 0x418e80]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x418a80]
movzx edx, byte [ebp - 1]
mov dword [eax + 4], esi
movzx esi, byte [ebp - 0xe]
mov edx, dword [edx*4 + 0x419680]
xor edx, dword [esi*4 + 0x419280]
movzx esi, byte [ebp - 0xb]
xor edx, dword [esi*4 + 0x418e80]
movzx esi, bl
xor edx, dword [esi*4 + 0x418a80]
movzx esi, byte [ebp - 0xa]
mov dword [eax + 8], edx
movzx edx, byte [ebp - 0xd]
mov edx, dword [edx*4 + 0x419680]
xor edx, dword [esi*4 + 0x419280]
movzx esi, bh
xor edx, dword [esi*4 + 0x418e80]
movzx esi, byte [ebp - 4]
xor edx, dword [esi*4 + 0x418a80]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x410b67
mov esi, edx
shl esi, 4
dec edx
lea esi, [esi + ecx + 0x24]
mov dword [ebp + 8], edx
mov edi, dword [eax + 4]
mov edx, dword [esi - 4]
xor edi, dword [esi]
xor edx, dword [eax]
sub esi, 0x10
mov dword [ebp - 0xc], edi
mov edi, dword [esi + 0x14]
xor edi, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
mov edi, dword [esi + 0x18]
xor edi, dword [eax + 0xc]
movzx ebx, byte [ebp - 6]
mov dword [ebp - 4], edi
movzx edi, byte [ebp - 9]
mov edi, dword [edi*4 + 0x419680]
xor edi, dword [ebx*4 + 0x419280]
movzx ebx, byte [ebp - 3]
xor edi, dword [ebx*4 + 0x418e80]
movzx ebx, dl
movzx edx, dh
xor edi, dword [ebx*4 + 0x418a80]
movzx ebx, byte [ebp - 2]
mov dword [eax], edi
movzx edi, byte [ebp - 5]
mov edi, dword [edi*4 + 0x419680]
xor edi, dword [ebx*4 + 0x419280]
xor edi, dword [edx*4 + 0x418e80]
movzx edx, byte [ebp - 0xc]
xor edi, dword [edx*4 + 0x418a80]
movzx edx, byte [ebp - 1]
mov dword [eax + 4], edi
movzx edi, byte [ebp - 0xe]
mov edx, dword [edx*4 + 0x419680]
xor edx, dword [edi*4 + 0x419280]
movzx edi, byte [ebp - 0xb]
xor edx, dword [edi*4 + 0x418e80]
movzx edi, byte [ebp - 8]
xor edx, dword [edi*4 + 0x418a80]
movzx edi, byte [ebp - 0xa]
mov dword [eax + 8], edx
movzx edx, byte [ebp - 0xd]
mov edx, dword [edx*4 + 0x419680]
xor edx, dword [edi*4 + 0x419280]
movzx edi, byte [ebp - 7]
xor edx, dword [edi*4 + 0x418e80]
movzx edi, byte [ebp - 4]
xor edx, dword [edi*4 + 0x418a80]
dec dword [ebp + 8]
mov dword [eax + 0xc], edx
jne 0x410a80
mov esi, dword [ecx + 0x34]
mov edx, dword [ecx + 0x30]
xor esi, dword [eax + 4]
xor edx, dword [eax]
pop edi
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x38]
xor esi, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0x3c]
xor esi, dword [eax + 0xc]
mov dword [ebp - 4], esi
movzx esi, dl
movzx edx, dh
mov bl, byte [esi + 0x419a80]
movzx esi, byte [ebp - 3]
mov byte [eax], bl
mov bl, byte [esi + 0x419a80]
movzx esi, byte [ebp - 6]
mov byte [eax + 1], bl
mov bl, byte [esi + 0x419a80]
movzx esi, byte [ebp - 9]
mov byte [eax + 2], bl
mov bl, byte [esi + 0x419a80]
movzx esi, byte [ebp - 0xc]
mov byte [eax + 3], bl
mov bl, byte [esi + 0x419a80]
pop esi
mov byte [eax + 4], bl
mov dl, byte [edx + 0x419a80]
mov byte [eax + 5], dl
pop ebx
movzx edx, byte [ebp - 2]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 6], dl
movzx edx, byte [ebp - 5]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 7], dl
movzx edx, byte [ebp - 8]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 8], dl
movzx edx, byte [ebp - 0xb]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 9], dl
movzx edx, byte [ebp - 0xe]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xa], dl
movzx edx, byte [ebp - 1]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xb], dl
movzx edx, byte [ebp - 4]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xc], dl
movzx edx, byte [ebp - 7]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xd], dl
movzx edx, byte [ebp - 0xa]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xe], dl
movzx edx, byte [ebp - 0xd]
mov dl, byte [edx + 0x419a80]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor dword [eax], edx
mov edx, dword [ecx + 0x24]
xor dword [eax + 4], edx
mov edx, dword [ecx + 0x28]
xor dword [eax + 8], edx
mov ecx, dword [ecx + 0x2c]
xor dword [eax + 0xc], ecx
leave
ret 8