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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov edx, dword [ecx]
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 edi, dword [ecx + 0x10]
xor edi, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [eax + 4]
mov eax, 0xff
mov dword [ebp - 0x14], edx
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 + 0x42f960]
mov ebx, dword [ebp - 8]
xor edx, dword [ebx*4 + 0x42f560]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x42fd60]
mov ebx, edi
and ebx, eax
xor edx, dword [ebx*4 + 0x42f160]
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 + 0x42f960]
mov ebx, dword [ebp - 8]
xor esi, dword [ebx*4 + 0x42f560]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42fd60]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor esi, dword [ebx*4 + 0x42f160]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
shr edi, 0x10
shr ebx, 8
and edi, eax
and ebx, eax
mov dword [ebp - 8], edi
mov edi, dword [ebx*4 + 0x42f560]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x42f960]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42fd60]
mov ebx, dword [ebp - 0x10]
xor esi, dword [ecx + 0x24]
and ebx, eax
xor edi, dword [ebx*4 + 0x42f160]
mov ebx, dword [ebp - 0x18]
xor edi, dword [ecx + 0x28]
add ecx, 0x20
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 + 0x42f960]
and ebx, eax
xor edi, dword [ebx*4 + 0x42f560]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42fd60]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x42f160]
xor edi, dword [ecx + 0xc]
jmp 0x41462a
mov edi, dword [ebp - 0x20]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x42f960]
mov ebx, esi
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x42f560]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42fd60]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x42f160]
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 + 0x42f960]
and ebx, eax
xor edi, dword [ebx*4 + 0x42f560]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42fd60]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x42f160]
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 + 0x42f560]
mov edi, dword [ebp - 8]
xor ebx, dword [edi*4 + 0x42f960]
mov edi, esi
shr edi, 0x18
xor ebx, dword [edi*4 + 0x42fd60]
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 + 0x42f160]
mov edi, dword [esi*4 + 0x42f960]
xor edi, dword [edx*4 + 0x42f560]
mov edx, dword [ebp - 0x20]
xor ebx, dword [ecx + 0x18]
mov esi, dword [ebp - 0x14]
shr edx, 0x18
xor edi, dword [edx*4 + 0x42fd60]
mov edx, dword [ebp - 0x1c]
and edx, eax
xor edi, dword [edx*4 + 0x42f160]
shr esi, 8
xor edi, dword [ecx + 0x1c]
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x42f960]
and esi, eax
xor edx, dword [esi*4 + 0x42f560]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x42fd60]
mov esi, dword [ebp - 0x18]
and esi, eax
xor edx, dword [esi*4 + 0x42f160]
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 + 0x42f960]
xor esi, dword [ebx*4 + 0x42f560]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42fd60]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor esi, dword [ebx*4 + 0x42f160]
mov ebx, dword [ebp - 0x18]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x42f560]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x42f960]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42fd60]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x42f160]
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 + 0x42f960]
and edi, eax
xor ebx, dword [edi*4 + 0x42f560]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x42fd60]
mov edi, dword [ebp - 0xc]
and edi, eax
xor ebx, dword [edi*4 + 0x42f160]
xor ebx, dword [ecx + 0xc]
mov edi, ebx
dec dword [ebp - 4]
mov dword [ebp - 0x1c], edi
jne 0x414456
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
xor ebx, dword [ecx + 0x10]
mov edi, dword [ebp + 8]
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 + 0x14]
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 + 0x18]
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]
shr edx, 8
shl esi, 8
and edx, eax
movzx edx, byte [edx + str.cw]
or ebx, esi
shl ebx, 8
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 + 0x1c]
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebx
leave
ret