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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ecx]
push ebx
mov ebx, dword [ecx + 0x1c]
xor ebx, dword [eax + 0xc]
push esi
mov esi, dword [ecx + 0x18]
xor esi, dword [eax + 8]
mov dword [ebp - 0xc], ebx
push edi
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [eax + 4]
add ecx, 0x10
mov edi, dword [ecx]
xor edi, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, 0xff
mov ebx, esi
shr ebx, 0x10
and ebx, eax
shr edx, 8
and edx, eax
mov dword [ebp - 8], edx
mov edx, dword [ebx*4 + 0x433648]
mov ebx, dword [ebp - 8]
xor edx, dword [ebx*4 + 0x433248]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x433a48]
mov ebx, edi
and ebx, eax
xor edx, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 0x10], esi
shr esi, 8
and esi, eax
mov dword [ebp - 8], esi
mov esi, dword [ebx*4 + 0x433648]
mov ebx, dword [ebp - 8]
xor esi, dword [ebx*4 + 0x433248]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x433a48]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor esi, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
shr ebx, 8
shr edi, 0x10
and ebx, eax
and edi, eax
mov dword [ebp - 8], edi
mov edi, dword [ebx*4 + 0x433248]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x433648]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433a48]
mov ebx, dword [ebp - 0x10]
xor esi, dword [ecx + 0x14]
and ebx, eax
xor edi, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0x18]
xor edi, dword [ecx + 0x18]
add ecx, 0x10
xor edx, dword [ecx]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x14]
shr edi, 0x10
shr ebx, 8
and edi, eax
mov edi, dword [edi*4 + 0x433648]
and ebx, eax
xor edi, dword [ebx*4 + 0x433248]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433a48]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x432e48]
xor edi, dword [ecx + 0xc]
jmp 0x411a09
mov edi, dword [ebp - 0x20]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x433648]
mov ebx, esi
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x433248]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433a48]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0x20]
xor edi, dword [ecx + 0x10]
shr ebx, 8
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x433648]
and ebx, eax
xor edi, dword [ebx*4 + 0x433248]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433a48]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x432e48]
mov ebx, edx
xor edi, dword [ecx + 0x14]
shr ebx, 0x10
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x1c]
shr edi, 8
and edi, eax
and ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [edi*4 + 0x433248]
mov edi, dword [ebp - 8]
xor ebx, dword [edi*4 + 0x433648]
mov edi, esi
shr edi, 0x18
xor ebx, dword [edi*4 + 0x433a48]
mov edi, dword [ebp - 0x20]
shr edx, 8
shr esi, 0x10
and edx, eax
and esi, eax
and edi, eax
xor ebx, dword [edi*4 + 0x432e48]
mov edi, dword [esi*4 + 0x433648]
xor edi, dword [edx*4 + 0x433248]
mov edx, dword [ebp - 0x20]
xor ebx, dword [ecx + 0x18]
mov esi, dword [ebp - 0x14]
shr edx, 0x18
xor edi, dword [edx*4 + 0x433a48]
mov edx, dword [ebp - 0x1c]
and edx, eax
xor edi, dword [edx*4 + 0x432e48]
shr esi, 8
xor edi, dword [ecx + 0x1c]
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x433648]
and esi, eax
xor edx, dword [esi*4 + 0x433248]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x433a48]
mov esi, dword [ebp - 0x18]
and esi, eax
xor edx, dword [esi*4 + 0x432e48]
add ecx, 0x20
xor edx, dword [ecx]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov esi, edi
shr ebx, 8
and ebx, eax
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x433648]
xor esi, dword [ebx*4 + 0x433248]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x433a48]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor esi, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0x18]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x433248]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x433648]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433a48]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x432e48]
mov ebx, dword [ebp - 0x14]
xor edi, dword [ecx + 8]
xor esi, dword [ecx + 4]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x18]
shr ebx, 0x10
shr edi, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x433648]
and edi, eax
xor ebx, dword [edi*4 + 0x433248]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x433a48]
mov edi, dword [ebp - 0xc]
and edi, eax
xor ebx, dword [edi*4 + 0x432e48]
xor ebx, dword [ecx + 0xc]
mov edi, ebx
dec dword [ebp - 4]
mov dword [ebp - 0x1c], edi
jne 0x411835
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov ebx, dword [ebp - 0x20]
shr ebx, 0x10
shl edi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or ebx, edi
shl ebx, 8
mov edi, esi
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or ebx, edi
shl ebx, 8
mov edi, edx
and edi, eax
movzx edi, byte [edi + str.cw]
or ebx, edi
mov edi, dword [ebp + 8]
add ecx, 0x10
xor ebx, dword [ecx]
mov dword [edi], ebx
mov edi, dword [ebp - 0x1c]
shr edi, 0x10
and edi, eax
movzx edi, byte [edi + str.cw]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, dword [ebp - 0x20]
shr ebx, 8
shl edi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or edi, ebx
shl edi, 8
mov ebx, esi
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or edi, ebx
xor edi, dword [ecx + 4]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], edi
mov edi, edx
shr edi, 0x10
and edi, eax
movzx ebx, byte [edi + str.cw]
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi + str.cw]
shl edi, 8
or ebx, edi
mov edi, dword [ebp - 0x1c]
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
shl ebx, 8
or ebx, edi
mov edi, dword [ebp - 0x20]
and edi, eax
movzx edi, byte [edi + str.cw]
shl ebx, 8
or ebx, edi
xor ebx, dword [ecx + 8]
mov edi, dword [ebp + 8]
shr esi, 0x10
and esi, eax
mov dword [edi + 8], ebx
movzx ebx, byte [esi + str.cw]
mov esi, dword [ebp - 0x20]
shr esi, 0x18
movzx esi, byte [esi + str.cw]
shl esi, 8
or ebx, esi
shr edx, 8
shl ebx, 8
and edx, eax
movzx edx, byte [edx + str.cw]
or ebx, edx
mov edx, dword [ebp - 0x1c]
and edx, eax
movzx eax, byte [edx + str.cw]
shl ebx, 8
or ebx, eax
xor ebx, dword [ecx + 0xc]
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebx
leave
ret 4