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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x464388]
push ebx
shl eax, 4
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
add eax, esi
mov ebx, dword [eax + 8]
xor ebx, dword [edi + 8]
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, dword [edi + 4]
mov dword [ebp - 8], ebx
mov ebx, dword [eax + 0xc]
xor ebx, dword [edi + 0xc]
mov dword [ebp - 4], ebx
mov eax, ebx
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x43ea88]
xor eax, dword [edi*4 + 0x43ee88]
mov edi, edx
shr edi, 0x18
xor eax, dword [edi*4 + 0x43f288]
shr ebx, 0x10
movzx edi, cl
xor eax, dword [edi*4 + 0x43e688]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x43ee88]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43f288]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ea88]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x43e688]
mov ebx, edx
mov dword [eax + 4], edi
mov edi, dword [ebp - 4]
shr edi, 0x18
mov edi, dword [edi*4 + 0x43f288]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ea88]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ee88]
movzx ebx, byte [ebp - 8]
xor edi, dword [ebx*4 + 0x43e688]
mov ebx, dword [ebp - 8]
mov dword [eax + 8], edi
shr ebx, 8
shr edx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x43ea88]
movzx edx, dl
xor edi, dword [edx*4 + 0x43ee88]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x43f288]
movzx ecx, byte [ebp - 4]
xor edi, dword [ecx*4 + 0x43e688]
mov dword [eax + 0xc], edi
mov ecx, dword [0x464388]
dec ecx
cmp ecx, 1
jle 0x40fa04
mov edx, ecx
shl edx, 4
lea edi, [edx + esi + 8]
dec ecx
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], ecx
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
xor ebx, dword [eax + 8]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov ebx, edi
xor ecx, dword [eax]
shr ebx, 8
mov dword [ebp - 4], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x43ea88]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ee88]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43f288]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x43e688]
mov ebx, dword [ebp - 4]
mov dword [eax], edi
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x43ee88]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43f288]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ea88]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x43e688]
mov ebx, edx
mov dword [eax + 4], edi
mov edi, dword [ebp - 4]
shr edi, 0x18
mov edi, dword [edi*4 + 0x43f288]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ea88]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x43ee88]
movzx ebx, byte [ebp - 8]
xor edi, dword [ebx*4 + 0x43e688]
mov ebx, dword [ebp - 8]
mov dword [eax + 8], edi
shr ebx, 8
shr edx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x43ea88]
movzx edx, dl
xor edi, dword [edx*4 + 0x43ee88]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x43f288]
movzx ecx, byte [ebp - 4]
xor edi, dword [ecx*4 + 0x43e688]
mov dword [eax + 0xc], edi
mov edi, dword [ebp + 0x10]
sub edi, 0x10
dec dword [ebp + 8]
mov dword [ebp + 0x10], edi
jne 0x40f8f8
mov edi, dword [esi + 0x18]
xor edi, dword [eax + 8]
mov ecx, dword [esi + 0x10]
xor ecx, dword [eax]
mov edx, dword [esi + 0x14]
mov dword [ebp - 8], edi
mov edi, dword [esi + 0x1c]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [ebp - 4], edi
movzx edi, cl
mov bl, byte [edi + 0x43f688]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 2], bl
mov edi, edx
shr edi, 0x18
mov bl, byte [edi + 0x43f688]
mov byte [eax + 3], bl
movzx edi, dl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 4], bl
mov ebx, ecx
shr ebx, 8
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 5], bl
mov ebx, dword [ebp - 4]
shr ebx, 0x10
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov edi, dword [ebp - 8]
mov byte [eax + 6], bl
shr edi, 0x18
mov bl, byte [edi + 0x43f688]
movzx edi, byte [ebp - 8]
mov byte [eax + 7], bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 8], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov edi, dword [ebp - 4]
mov byte [eax + 0xa], bl
shr edi, 0x18
mov bl, byte [edi + 0x43f688]
movzx edi, byte [ebp - 4]
mov byte [eax + 0xb], bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 8]
shr ebx, 8
shr edx, 0x10
movzx edi, bl
mov bl, byte [edi + 0x43f688]
mov byte [eax + 0xd], bl
movzx edx, dl
mov dl, byte [edx + 0x43f688]
shr ecx, 0x18
mov byte [eax + 0xe], dl
mov cl, byte [ecx + 0x43f688]
mov byte [eax + 0xf], cl
mov ecx, dword [esi]
xor dword [eax], ecx
mov ecx, dword [esi + 4]
xor dword [eax + 4], ecx
mov ecx, dword [esi + 8]
xor dword [eax + 8], ecx
mov ecx, dword [esi + 0xc]
xor dword [eax + 0xc], ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret