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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [0x79d828]
add eax, eax
push ebx
mov edx, dword [ecx]
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor edx, dword [ebx + eax*8]
mov dword [ebp - 4], edx
mov edx, dword [ebx + eax*8 + 4]
xor edx, dword [ecx + 4]
mov dword [ebp + 8], edx
mov edx, dword [ebx + eax*8 + 8]
mov ebx, dword [ebx + eax*8 + 0xc]
xor ebx, dword [ecx + 0xc]
xor edx, dword [ecx + 8]
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x591e80]
mov ecx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x592280]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor esi, dword [eax*4 + 0x592680]
movzx eax, cl
xor esi, dword [eax*4 + 0x591a80]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [edi], esi
mov dword [ebp - 0x10], esi
mov esi, dword [ecx*4 + 0x591e80]
xor esi, dword [eax*4 + 0x592280]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x592680]
mov eax, dword [ebp + 8]
movzx eax, al
xor esi, dword [eax*4 + 0x591a80]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov dword [edi + 4], esi
mov edi, dword [ecx*4 + 0x592280]
xor edi, dword [eax*4 + 0x591e80]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x592680]
movzx eax, dl
shr edx, 8
movzx ecx, dl
mov edx, dword [ebp + 0xc]
xor edi, dword [eax*4 + 0x591a80]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x591e80]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x592280]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x592680]
movzx eax, bl
xor ecx, dword [eax*4 + 0x591a80]
mov dword [edx + 0xc], ecx
mov eax, dword [0x79d828]
mov dword [ebp + 8], ecx
dec eax
mov dword [ebp - 0xc], eax
cmp eax, 1
jle 0x4567ae
mov ebx, dword [ebp + 0x10]
shl eax, 4
add ebx, 8
add ebx, eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx - 8]
xor eax, dword [edx]
mov edx, dword [ebx]
mov dword [ebp - 4], eax
xor edx, edi
mov eax, dword [ebx - 4]
xor eax, esi
mov ebx, dword [ebx + 4]
mov dword [ebp + 8], eax
xor ebx, ecx
mov eax, edx
mov edi, dword [ebp + 0xc]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x592280]
mov ecx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x591e80]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor esi, dword [eax*4 + 0x592680]
movzx eax, cl
xor esi, dword [eax*4 + 0x591a80]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [edi], esi
mov dword [ebp - 0x10], esi
mov esi, dword [ecx*4 + 0x591e80]
xor esi, dword [eax*4 + 0x592280]
mov eax, edx
mov ecx, dword [ebp + 8]
shr eax, 0x18
xor esi, dword [eax*4 + 0x592680]
movzx eax, cl
xor esi, dword [eax*4 + 0x591a80]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], esi
mov edi, dword [ecx*4 + 0x591e80]
xor edi, dword [eax*4 + 0x592280]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x592680]
movzx eax, dl
shr edx, 8
movzx ecx, dl
mov edx, dword [ebp + 0xc]
xor edi, dword [eax*4 + 0x591a80]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x591e80]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x592280]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x592680]
movzx eax, bl
mov ebx, dword [ebp - 8]
sub ebx, 0x10
mov dword [ebp - 8], ebx
xor ecx, dword [eax*4 + 0x591a80]
sub dword [ebp - 0xc], 1
mov dword [edx + 0xc], ecx
jne 0x456690
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
xor eax, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
xor edx, edi
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x1c]
xor ebx, esi
movzx eax, al
mov edi, dword [ebp + 0xc]
xor ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
movzx eax, byte [eax + 0x592a80]
mov byte [edi], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 4], al
mov eax, esi
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 7], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 8], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 9], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 0xb], al
movzx eax, cl
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax + 0x592a80]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x592a80]
mov byte [edi + 0xf], al
mov eax, dword [ecx]
xor dword [edi], eax
mov eax, dword [ecx + 4]
xor dword [edi + 4], eax
mov eax, dword [ecx + 8]
xor dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret