Function at 0x56392c
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 0x563958
mov edx, edi
add edx, 6
mov dword [ecx + 0x3ec], edx
cmp eax, 8
jne 0x56397c
mov dword [ecx + 0x3c0], 0x562885
mov dword [ecx + 0x3c4], 0x563408
jmp 0x5639b0
cmp eax, 6
jne 0x563997
mov dword [ecx + 0x3c0], 0x5624a5
mov dword [ecx + 0x3c4], 0x563028
jmp 0x5639b0
cmp eax, 4
jne 0x5639b0
mov dword [ecx + 0x3c0], 0x562221
mov dword [ecx + 0x3c4], 0x562da3
xor ebx, ebx
inc edx
imul edx, eax
mov dword [ebp + 8], 1
test edx, edx
jle 0x563b00
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 0x563a04
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 0x563adf
mov eax, ebx
cdq
idiv edi
mov esi, dword [ecx + ebx*4 - 4]
test edx, edx
jne 0x563a7d
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 0x563ad2
cmp edx, 4
jne 0x563ad2
cmp edi, 6
jle 0x563ad2
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 0x5639da
and dword [ebp + 8], 0
cmp dword [ecx + 0x3ec], 0
jl 0x563bca
xor esi, esi
cmp dword [ecx + 0x3e8], esi
jle 0x563bb8
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 0x563b9e
cmp dword [ebp + 8], edi
je 0x563b9e
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 + 0x5c43c0]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5c47c0]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x5c3fc0]
and edx, 0xff
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x5c4bc0]
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 0x563b1f
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x3ec]
jle 0x563b11
pop edi
pop esi
pop ebx
leave
ret