Function at 0x640294
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
xor eax, eax
dec eax
test esi, esi
je 0x6403c6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6403c6
mov edi, dword [ebp + 0xc]
cmp edi, 0x80
je 0x6402da
cmp edi, 0x100
je 0x6402da
mov eax, 0xfffffffe
cmp edi, 0xc0
jne 0x6403c6
cmp edi, 0x80
jne 0x6402ee
mov dword [ecx + 0xf0], 0xa
jmp 0x64030c
cmp edi, 0xc0
jne 0x640302
mov dword [ecx + 0xf0], 0xc
jmp 0x64030c
mov dword [ecx + 0xf0], 0xe
mov edx, dword [esi]
bswap edx
mov dword [ecx], edx
mov eax, dword [esi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
cmp edi, 0x80
jne 0x6403ce
mov eax, 7
mov esi, dword [ecx + eax*4 - 0x10]
mov ebx, esi
shr ebx, 0xe
and ebx, 0x3fc
movzx ebx, byte [ebx + 0x7719a7]
shl ebx, 0x18
xor ebx, edx
mov edx, esi
shr edx, 8
mov edi, 0xff
and edx, edi
movzx edx, byte [edx*4 + 0x771da6]
shl edx, 0x10
mov edi, esi
mov ecx, 0xff
and edi, ecx
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edi*4 + str.cc]
shl edi, 8
xor edi, edx
xor edi, ebx
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx*4 + 0x7725a4]
xor edx, edi
xor edx, dword [eax + 0x77299d]
mov dword [ecx + eax*4 - 0xc], edx
mov edi, dword [ecx + eax*4 - 0x18]
xor edi, edx
mov dword [ecx + eax*4 - 8], edi
xor edi, dword [ecx + eax*4 - 0x14]
mov dword [ecx + eax*4 - 4], edi
xor edi, esi
mov dword [ecx + eax*4], edi
add eax, 4
cmp eax, 0x2f
jne 0x64033b
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
cmp edi, 0xc0
jne 0x640487
add ecx, 0x2c
mov dword [ebp - 0x10], 0xffffffe4
mov esi, dword [ecx - 0x18]
mov ebx, esi
shr ebx, 0xe
and ebx, 0x3fc
movzx ebx, byte [ebx + 0x7719a7]
shl ebx, 0x18
xor ebx, edx
mov edx, esi
shr edx, 8
mov eax, 0xff
and edx, eax
movzx edx, byte [edx*4 + 0x771da6]
shl edx, 0x10
mov edi, esi
and edi, eax
movzx edi, byte [edi*4 + str.cc]
shl edi, 8
xor edi, edx
xor edi, ebx
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx*4 + 0x7725a4]
xor edx, edi
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + 0x7729c0]
mov dword [ecx - 0x14], edx
mov ebx, dword [ecx - 0x28]
xor ebx, edx
mov dword [ecx - 0x10], ebx
xor ebx, dword [ecx - 0x24]
mov dword [ecx - 0xc], ebx
xor ebx, dword [ecx - 0x20]
mov dword [ecx - 8], ebx
test eax, eax
je 0x6403c4
xor ebx, dword [ecx - 0x1c]
mov dword [ecx - 4], ebx
xor ebx, esi
mov dword [ecx], ebx
add ecx, 0x18
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x6403f4
mov eax, dword [esi + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
xor eax, eax
cmp edi, 0x100
jne 0x6403c6
xor edi, edi
mov eax, dword [ecx + edi*8 + 0x1c]
mov esi, eax
shr esi, 0xe
and esi, 0x3fc
movzx esi, byte [esi + 0x7719a7]
shl esi, 0x18
xor esi, edx
mov edx, eax
shr edx, 8
mov ebx, 0xff
and edx, ebx
movzx edx, byte [edx*4 + 0x771da6]
shl edx, 0x10
mov dword [ebp - 0x10], edx
mov ebx, eax
mov edx, 0xff
and ebx, edx
movzx ebx, byte [ebx*4 + str.cc]
shl ebx, 8
xor ebx, dword [ebp - 0x10]
xor ebx, esi
mov dword [ebp - 0x10], eax
shr eax, 0x18
movzx edx, byte [eax*4 + 0x7725a4]
xor edx, ebx
xor edx, dword [edi + 0x7729a4]
mov dword [ecx + edi*8 + 0x20], edx
mov eax, dword [ecx + edi*8 + 4]
xor eax, edx
mov dword [ecx + edi*8 + 0x24], eax
xor eax, dword [ecx + edi*8 + 8]
mov dword [ecx + edi*8 + 0x28], eax
xor eax, dword [ecx + edi*8 + 0xc]
mov dword [ecx + edi*8 + 0x2c], eax
cmp edi, 0x18
je 0x6403c4
mov ebx, eax
shr ebx, 0xe
and ebx, 0x3fc
movzx esi, byte [ebx + 0x771da6]
shl esi, 0x10
mov dword [ebp - 0x14], esi
mov esi, eax
shr esi, 8
mov ebx, 0xff
and esi, ebx
mov dword [ebp - 0x18], edi
movzx edi, byte [esi*4 + str.cc]
shl edi, 8
xor edi, dword [ebp - 0x14]
mov ebx, eax
mov esi, 0xff
and eax, esi
movzx esi, byte [eax*4 + 0x7725a4]
xor esi, edi
mov edi, dword [ebp - 0x18]
shr ebx, 0x18
movzx eax, byte [ebx*4 + 0x7719a7]
shl eax, 0x18
xor eax, dword [ecx + edi*8 + 0x10]
xor esi, eax
mov dword [ecx + edi*8 + 0x30], esi
xor esi, dword [ecx + edi*8 + 0x14]
mov dword [ecx + edi*8 + 0x34], esi
xor esi, dword [ecx + edi*8 + 0x18]
mov dword [ecx + edi*8 + 0x38], esi
xor esi, dword [ebp - 0x10]
mov dword [ecx + edi*8 + 0x3c], esi
add edi, 4
jmp 0x6404a7