Function at 0x563472
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 0x56349e
mov edx, edi
add edx, 6
mov dword [ecx + 0x3ec], edx
cmp eax, 8
jne 0x5634c2
mov dword [ecx + 0x3c0], 0x5623cb
mov dword [ecx + 0x3c4], 0x562f4e
jmp 0x5634f6
cmp eax, 6
jne 0x5634dd
mov dword [ecx + 0x3c0], 0x561feb
mov dword [ecx + 0x3c4], 0x562b6e
jmp 0x5634f6
cmp eax, 4
jne 0x5634f6
mov dword [ecx + 0x3c0], 0x561d67
mov dword [ecx + 0x3c4], 0x5628e9
xor ebx, ebx
inc edx
imul edx, eax
mov dword [ebp + 8], 1
test edx, edx
jle 0x563646
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 0x56354a
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 0x563625
mov eax, ebx
cdq
idiv edi
mov esi, dword [ecx + ebx*4 - 4]
test edx, edx
jne 0x5635c3
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 0x563618
cmp edx, 4
jne 0x563618
cmp edi, 6
jle 0x563618
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 0x563520
and dword [ebp + 8], 0
cmp dword [ecx + 0x3ec], 0
jl 0x563710
xor esi, esi
cmp dword [ecx + 0x3e8], esi
jle 0x5636fe
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 0x5636e4
cmp dword [ebp + 8], edi
je 0x5636e4
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 + 0x5bfc38]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5c0038]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5bf838]
and edx, 0xff
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x5c0438]
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 0x563665
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x3ec]
jle 0x563657
pop edi
pop esi
pop ebx
leave
ret