Function at 0x5f6cc4
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 + 0x6191ec]
movzx ebp, dh
xor edi, dword [ebp*4 + 0x6195ec]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x6199ec]
mov ebp, esi
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x619dec]
mov dword [esp + 4], edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x6191ec]
movzx ebp, bh
xor edi, dword [ebp*4 + 0x6195ec]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x6199ec]
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x619dec]
mov dword [esp + 8], edi
movzx edi, cl
mov edi, dword [edi*4 + 0x6191ec]
movzx ebp, si
shr ebp, 8
xor edi, dword [ebp*4 + 0x6195ec]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x6199ec]
mov ebp, edx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x619dec]
mov dword [esp + 0xc], edi
and edx, 0xff
mov edx, dword [edx*4 + 0x6191ec]
movzx ecx, ch
xor edx, dword [ecx*4 + 0x6195ec]
shr esi, 0x10
and esi, 0xff
xor edx, dword [esi*4 + 0x6199ec]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x619dec]
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 0x5f6cff
mov ebp, eax
movzx eax, bl
movzx eax, byte [eax + 0x6190ec]
movzx edi, dh
movzx edi, byte [edi + 0x6190ec]
shl edi, 8
xor eax, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x6190ec]
shl edi, 0x10
xor eax, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi + 0x6190ec]
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 + 0x6190ec]
movzx edi, bh
movzx edi, byte [edi + 0x6190ec]
shl edi, 8
xor eax, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x6190ec]
shl edi, 0x10
xor eax, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [edi + 0x6190ec]
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 + 0x6190ec]
movzx edi, si
shr edi, 8
movzx edi, byte [edi + 0x6190ec]
shl edi, 8
xor eax, edi
mov edi, ebx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x6190ec]
shl edi, 0x10
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + 0x6190ec]
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 + 0x6190ec]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + 0x6190ec]
shl edx, 8
xor eax, edx
shr esi, 0x10
and esi, 0xff
movzx edx, byte [esi + 0x6190ec]
shl edx, 0x10
xor eax, edx
shr ebx, 0x18
movzx edx, byte [ebx + 0x6190ec]
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