Function at 0x567b53
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cdq
push ebx
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov eax, dword [ebp + 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
sar edi, 2
mov dword [ecx + 0x3e8], eax
mov edx, eax
cmp eax, edi
jg 0x567b7f
mov edx, edi
add edx, 6
mov dword [ecx + 0x3ec], edx
cmp eax, 8
jne 0x567ba3
mov dword [ecx + 0x3c0], 0x566aac
mov dword [ecx + 0x3c4], 0x56762f
jmp 0x567bd7
cmp eax, 6
jne 0x567bbe
mov dword [ecx + 0x3c0], 0x5666cc
mov dword [ecx + 0x3c4], 0x56724f
jmp 0x567bd7
cmp eax, 4
jne 0x567bd7
mov dword [ecx + 0x3c0], 0x566448
mov dword [ecx + 0x3c4], 0x566fca
xor ebx, ebx
inc edx
imul edx, eax
mov dword [ebp + 8], 1
test edx, edx
jle 0x567d27
mov edx, edi
shl edx, 2
mov eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add eax, 2
mov dword [ebp - 8], eax
cmp ebx, edi
jge 0x567c2b
movzx edx, byte [eax - 2]
movzx esi, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ecx + ebx*4], edx
jmp 0x567d06
mov eax, ebx
cdq
idiv edi
mov esi, dword [ecx + ebx*4 - 4]
test edx, edx
jne 0x567ca4
mov eax, esi
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp + 8]
mov edx, esi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
mov edx, esi
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
mov edx, dword [ebp + 8]
shl eax, 8
shr esi, 0x18
movzx esi, byte [esi + str.cw]
or esi, eax
mov eax, dword [ebp + 8]
and al, 0x80
movsx eax, al
neg eax
sbb eax, eax
and edx, 0x7f
and eax, 0x1b
add edx, edx
xor eax, edx
mov dword [ebp + 8], eax
jmp 0x567cf9
cmp edx, 4
jne 0x567cf9
cmp edi, 6
jle 0x567cf9
mov eax, esi
shr eax, 0x10
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
and eax, 0xff
movzx eax, byte [eax + str.cw]
shl edx, 8
or eax, edx
mov edx, esi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and esi, 0xff
movzx esi, byte [esi + str.cw]
or eax, edx
shl eax, 8
or esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
mov edx, dword [ecx + 0x3ec]
add eax, 4
inc ebx
inc edx
imul edx, dword [ecx + 0x3e8]
mov dword [ebp - 8], eax
cmp ebx, edx
jl 0x567c01
and dword [ebp + 8], 0
cmp dword [ecx + 0x3ec], 0
jl 0x567df1
xor esi, esi
cmp dword [ecx + 0x3e8], esi
jle 0x567ddf
mov edi, dword [ecx + 0x3ec]
mov eax, dword [ecx + 0x3e8]
mov edx, edi
sub edx, dword [ebp + 8]
imul edx, eax
add edx, esi
cmp dword [ebp + 8], 0
mov edx, dword [ecx + edx*4]
je 0x567dc5
cmp dword [ebp + 8], edi
je 0x567dc5
mov edi, edx
shr edi, 0x10
mov ebx, edx
shr ebx, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*4 + 0x5cb830]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5cbc30]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5cb430]
and edx, 0xff
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x5cc030]
mov edx, edi
imul eax, dword [ebp + 8]
add eax, esi
inc esi
mov dword [ecx + eax*4 + 0x1e0], edx
cmp esi, dword [ecx + 0x3e8]
jl 0x567d46
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x3ec]
jle 0x567d38
pop edi
pop esi
pop ebx
leave
ret