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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
xor edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x438600]
xor eax, dword [edx*4 + 0x438a00]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x438e00]
mov edx, dword [ebp - 4]
shr edx, 0x18
and edx, 0xff
xor eax, dword [edx*4 + 0x439200]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov ecx, dword [edx*4 + 0x438600]
xor ecx, dword [eax*4 + 0x438a00]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x438e00]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
and eax, 0xff
xor ecx, dword [eax*4 + 0x439200]
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x438600]
xor edx, dword [ecx*4 + 0x438a00]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x438e00]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
and ecx, 0xff
xor edx, dword [ecx*4 + 0x439200]
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x438600]
xor eax, dword [edx*4 + 0x438a00]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x438e00]
mov edx, dword [ebp - 8]
shr edx, 0x18
and edx, 0xff
xor eax, dword [edx*4 + 0x439200]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
jne 0x4214bd
jmp 0x42160d
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [ebp - 0x20]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x438600]
xor edx, dword [ecx*4 + 0x438a00]
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x438e00]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
and ecx, 0xff
xor edx, dword [ecx*4 + 0x439200]
mov eax, dword [ebp + 8]
xor edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x438600]
xor eax, dword [edx*4 + 0x438a00]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x438e00]
mov edx, dword [ebp - 0x24]
shr edx, 0x18
and edx, 0xff
xor eax, dword [edx*4 + 0x439200]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 0x14]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [edx*4 + 0x438600]
xor ecx, dword [eax*4 + 0x438a00]
mov edx, dword [ebp - 0x24]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x438e00]
mov eax, dword [ebp - 0x20]
shr eax, 0x18
and eax, 0xff
xor ecx, dword [eax*4 + 0x439200]
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 0x18]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x438600]
xor edx, dword [ecx*4 + 0x438a00]
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x438e00]
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
and ecx, 0xff
xor edx, dword [ecx*4 + 0x439200]
mov eax, dword [ebp + 8]
xor edx, dword [eax + 0x1c]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
add ecx, 0x20
mov dword [ebp + 8], ecx
jmp 0x42136a
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x24]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x20]
shr edx, 8
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 0x18]
shr edx, 0x18
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x18
or ecx, eax
mov edx, dword [ebp + 8]
xor ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 0x10
or edx, ecx
mov eax, dword [ebp - 0x24]
shr eax, 0x18
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x1c]
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x20]
shr ecx, 0x18
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x18
or ecx, eax
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov esp, ebp
pop ebp
ret