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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x10]
xor ecx, dword [eax]
mov edx, dword [esi + 0x14]
xor edx, dword [eax + 4]
mov ebx, dword [esi + 0x1c]
xor ebx, dword [eax + 0xc]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x18]
xor ecx, dword [eax + 8]
mov eax, ecx
mov dword [ebp - 8], ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [esi]
add esi, 0x20
mov ecx, dword [ecx*4 + 0x4f59c0]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f51c0]
mov eax, ebx
xor ecx, dword [esi]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f59c0]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4f51c0]
mov eax, ebx
xor ecx, dword [esi + 4]
shr eax, 8
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f55c0]
xor ecx, dword [eax*4 + 0x4f59c0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
xor ecx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f51c0]
xor ecx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
shr eax, 8
movzx eax, al
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x4f59c0]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4f51c0]
xor ecx, dword [esi + 0xc]
sub edi, 1
mov dword [ebp - 0x14], edi
jmp 0x407740
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov ebx, dword [ebp - 4]
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f59c0]
mov edx, dword [ebp - 0x10]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4f51c0]
xor ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f59c0]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4f51c0]
xor ecx, dword [esi + 0x14]
mov eax, dword [ebp + 0x10]
shr eax, 8
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ebx, dword [ecx*4 + 0x4f55c0]
mov ecx, dword [ebp - 4]
xor ebx, dword [eax*4 + 0x4f59c0]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp + 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x4f51c0]
xor ebx, dword [esi + 0x18]
movzx eax, dl
mov edx, dword [ecx*4 + 0x4f59c0]
xor edx, dword [eax*4 + 0x4f55c0]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor edx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor edx, dword [eax*4 + 0x4f51c0]
mov eax, ebx
xor edx, dword [esi + 0x1c]
add esi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f59c0]
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f51c0]
mov eax, edx
xor ecx, dword [esi]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov ecx, dword [ecx*4 + 0x4f59c0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f55c0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4f5dc0]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x4f51c0]
mov eax, edx
xor ecx, dword [esi + 4]
shr eax, 8
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f55c0]
xor ecx, dword [eax*4 + 0x4f59c0]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edi, dword [ebp + 8]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [eax*4 + 0x4f5dc0]
movzx eax, bl
mov ecx, dword [ecx*4 + 0x4f59c0]
shr ebx, 0x18
xor edi, dword [eax*4 + 0x4f51c0]
mov eax, edi
mov dword [ebp + 8], edi
xor eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f55c0]
xor ecx, dword [ebx*4 + 0x4f5dc0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4f51c0]
xor ecx, dword [esi + 0xc]
sub dword [ebp - 0x14], 1
mov dword [ebp + 0x10], ecx
jne 0x40754e
mov eax, ecx
mov ebx, dword [ebp - 0x10]
shr eax, 0x18
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
xor ecx, dword [esi + 0x10]
shr eax, 0x10
movzx eax, al
mov dword [edx], ecx
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4c5cc0]
shl eax, 8
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [esi + 0x14]
shr eax, 0x18
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr ebx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [esi + 0x18]
shr eax, 0x18
mov dword [edx + 8], ecx
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
movzx eax, al
shl ecx, 8
pop edi
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
xor ecx, dword [esi + 0x1c]
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret