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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
movzx ecx, word [eax + 0x112]
lea esi, [ecx*4]
lea ecx, [ecx - 1]
lea eax, [eax + esi*4]
mov dword [esp + 0x10], ecx
mov ebx, dword [edx]
xor ebx, dword [eax]
mov esi, dword [edx + 4]
xor esi, dword [eax + 4]
mov ecx, dword [edx + 8]
xor ecx, dword [eax + 8]
mov edx, dword [edx + 0xc]
xor edx, dword [eax + 0xc]
lea eax, [eax - 0x10]
movzx edi, bl
mov edi, dword [edi*4 + 0xa31ed8]
movzx ebp, dh
xor edi, dword [ebp*4 + 0xa322d8]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0xa326d8]
mov ebp, esi
shr ebp, 0x18
xor edi, dword [ebp*4 + 0xa32ad8]
mov dword [esp + 4], edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0xa31ed8]
movzx ebp, bh
xor edi, dword [ebp*4 + 0xa322d8]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0xa326d8]
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0xa32ad8]
mov dword [esp + 8], edi
movzx edi, cl
mov edi, dword [edi*4 + 0xa31ed8]
movzx ebp, si
shr ebp, 8
xor edi, dword [ebp*4 + 0xa322d8]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0xa326d8]
mov ebp, edx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0xa32ad8]
mov dword [esp + 0xc], edi
and edx, 0xff
mov edx, dword [edx*4 + 0xa31ed8]
movzx ecx, ch
xor edx, dword [ecx*4 + 0xa322d8]
shr esi, 0x10
and esi, 0xff
xor edx, dword [esi*4 + 0xa326d8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0xa32ad8]
xor edx, dword [eax + 0xc]
mov ebx, dword [eax]
xor ebx, dword [esp + 4]
mov esi, dword [eax + 4]
xor esi, dword [esp + 8]
mov ecx, dword [eax + 8]
xor ecx, dword [esp + 0xc]
lea eax, [eax - 0x10]
dec byte [esp + 0x10]
jne 0x8ed37f
mov ebp, eax
movzx eax, bl
movzx eax, byte [eax + 0xa31dd8]
movzx edi, dh
movzx edi, byte [edi + 0xa31dd8]
shl edi, 8
xor eax, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x10
xor eax, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x18
xor eax, edi
xor eax, dword [ebp]
mov edi, dword [esp]
mov dword [edi], eax
mov eax, esi
and eax, 0xff
movzx eax, byte [eax + 0xa31dd8]
movzx edi, bh
movzx edi, byte [edi + 0xa31dd8]
shl edi, 8
xor eax, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x10
xor eax, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x18
xor eax, edi
xor eax, dword [ebp + 4]
mov edi, dword [esp]
mov dword [edi + 4], eax
movzx eax, cl
movzx eax, byte [eax + 0xa31dd8]
movzx edi, si
shr edi, 8
movzx edi, byte [edi + 0xa31dd8]
shl edi, 8
xor eax, edi
mov edi, ebx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x10
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + 0xa31dd8]
shl edi, 0x18
xor eax, edi
xor eax, dword [ebp + 8]
mov edi, dword [esp]
mov dword [edi + 8], eax
and edx, 0xff
movzx eax, byte [edx + 0xa31dd8]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + 0xa31dd8]
shl edx, 8
xor eax, edx
shr esi, 0x10
and esi, 0xff
movzx edx, byte [esi + 0xa31dd8]
shl edx, 0x10
xor eax, edx
shr ebx, 0x18
movzx edx, byte [ebx + 0xa31dd8]
shl edx, 0x18
xor eax, edx
xor eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret