Function at 0x408411
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx]
cmp edx, 0x80
bswap ecx
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
bswap ecx
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
bswap ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
bswap ecx
mov dword [eax + 0xc], ecx
jne 0x4084c1
xor ebx, ebx
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
xor esi, dword [ebx*4 + 0x410ae0]
inc ebx
movzx edx, cl
mov edx, dword [edx*4 + 0x412820]
and edx, 0xff00
xor edx, esi
mov esi, ecx
shr esi, 0x18
movzx esi, byte [esi*4 + 0x412420]
xor esi, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x412020]
and edx, 0xff000000
xor edx, esi
movzx esi, ch
mov esi, dword [esi*4 + 0x411c20]
and esi, 0xff0000
xor edx, esi
mov dword [eax + 0x10], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x14], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x18], edx
xor edx, ecx
cmp ebx, 0xa
mov dword [eax + 0x1c], edx
je 0x40866d
add eax, 0x10
jmp 0x408448
mov ecx, dword [ebx + 0x10]
cmp edx, 0xc0
bswap ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x14]
bswap ecx
mov dword [eax + 0x14], ecx
jne 0x408567
xor ebx, ebx
mov ecx, dword [eax + 0x14]
mov esi, dword [eax]
xor esi, dword [ebx*4 + 0x410ae0]
inc ebx
movzx edx, cl
mov edx, dword [edx*4 + 0x412820]
and edx, 0xff00
xor edx, esi
mov esi, ecx
shr esi, 0x18
movzx esi, byte [esi*4 + 0x412420]
xor esi, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x412020]
and edx, 0xff000000
xor edx, esi
movzx esi, ch
mov esi, dword [esi*4 + 0x411c20]
and esi, 0xff0000
xor edx, esi
mov dword [eax + 0x18], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x1c], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x20], edx
xor edx, dword [eax + 0xc]
cmp ebx, 8
mov dword [eax + 0x24], edx
je 0x408661
xor edx, dword [eax + 0x10]
add eax, 0x18
mov dword [eax + 0x10], edx
xor edx, ecx
mov dword [eax + 0x14], edx
jmp 0x4084df
mov ecx, dword [ebx + 0x18]
bswap ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [ebx + 0x1c]
xor ebx, ebx
cmp edx, 0x100
bswap ecx
mov dword [eax + 0x1c], ecx
jne 0x40866d
xor esi, esi
mov ecx, dword [eax + 0x1c]
mov ebx, dword [eax]
xor ebx, dword [esi*4 + 0x410ae0]
inc esi
movzx edx, cl
mov edx, dword [edx*4 + 0x412820]
and edx, 0xff00
xor edx, ebx
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx*4 + 0x412420]
xor edx, ebx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x412020]
and ebx, 0xff000000
xor edx, ebx
movzx ebx, ch
mov ebx, dword [ebx*4 + 0x411c20]
and ebx, 0xff0000
xor edx, ebx
mov dword [eax + 0x20], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x24], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x28], edx
xor edx, dword [eax + 0xc]
cmp esi, 7
mov dword [eax + 0x2c], edx
je 0x408668
mov ebx, edx
movzx edi, dh
shr ebx, 0x10
mov edi, dword [edi*4 + 0x412820]
add eax, 0x20
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x411c20]
and edi, 0xff00
and ebx, 0xff0000
or ebx, edi
mov edi, edx
shr edi, 0x18
movzx edx, dl
mov edi, dword [edi*4 + 0x412020]
movzx edx, byte [edx*4 + 0x412420]
xor ebx, dword [eax - 0x10]
and edi, 0xff000000
or edi, edx
xor ebx, edi
mov dword [eax + 0x10], ebx
mov edx, ebx
xor edx, dword [eax - 0xc]
mov dword [eax + 0x14], edx
xor edx, dword [eax - 8]
mov dword [eax + 0x18], edx
xor edx, ecx
mov dword [eax + 0x1c], edx
jmp 0x408587
mov ebx, 0xc
jmp 0x40866d
mov ebx, 0xe
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret