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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
shl ecx, 0x18
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
movzx edx, byte [eax + edx]
shl edx, 0x10
xor ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
shl eax, 8
xor ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
xor ecx, eax
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 8], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 4]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 4]
xor eax, edx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx]
mov dword [ebp - 0xc], eax
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 8]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 8]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 8]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 8]
xor eax, edx
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x10], eax
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0xc]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0xc]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0xc]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0xc]
xor eax, edx
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xf0]
sar eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x5e8e88]
xor eax, dword [edx*4 + 0x5e8a88]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e8688]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e8288]
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x5e8e88]
xor edx, dword [ecx*4 + 0x5e8a88]
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x5e8688]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e8288]
mov eax, 4
imul ecx, eax, 5
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x5e8e88]
xor eax, dword [edx*4 + 0x5e8a88]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e8688]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e8288]
mov ecx, 4
imul edx, ecx, 6
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x5e8e88]
xor ecx, dword [eax*4 + 0x5e8a88]
mov edx, dword [ebp - 0xc]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x5e8688]
mov eax, dword [ebp - 8]
and eax, 0xff
xor ecx, dword [eax*4 + 0x5e8288]
mov edx, 4
imul eax, edx, 7
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jne 0x594dd7
jmp 0x594f26
mov edx, dword [ebp - 0x24]
shr edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x5e8e88]
xor ecx, dword [eax*4 + 0x5e8a88]
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x5e8688]
mov eax, dword [ebp - 0x20]
and eax, 0xff
xor ecx, dword [eax*4 + 0x5e8288]
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x5e8e88]
xor edx, dword [ecx*4 + 0x5e8a88]
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x5e8688]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e8288]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x5e8e88]
xor ecx, dword [eax*4 + 0x5e8a88]
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x5e8688]
mov eax, dword [ebp - 0x18]
and eax, 0xff
xor ecx, dword [eax*4 + 0x5e8288]
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x5e8e88]
xor eax, dword [edx*4 + 0x5e8a88]
mov ecx, dword [ebp - 0x20]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e8688]
mov edx, dword [ebp - 0x24]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e8288]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x14], eax
jmp 0x594c71
mov edx, dword [ebp - 0x24]
shr edx, 0x18
mov eax, dword [edx*4 + 0x5e7e88]
and eax, 0xff000000
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff
xor eax, edx
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, 1
imul ecx, eax, 0
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], cl
mov ecx, dword [ebp - 8]
shr ecx, 8
mov edx, 1
shl edx, 1
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], cl
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 8]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x20]
shr edx, 0x18
mov eax, dword [edx*4 + 0x5e7e88]
and eax, 0xff000000
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff
xor eax, edx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + edx + 4], al
mov edx, dword [ebp - 0xc]
shr edx, 0x10
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax + 4], dl
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, 1
shl eax, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax + 4], dl
mov edx, 1
imul eax, edx, 3
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0xc]
mov byte [ecx + eax + 4], dl
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov ecx, dword [eax*4 + 0x5e7e88]
and ecx, 0xff000000
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + 0x5e7e88]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + 0x5e7e88]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov eax, dword [edx*4 + 0x5e7e88]
and eax, 0xff
xor ecx, eax
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + eax + 8], cl
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx + 8], al
mov eax, dword [ebp - 0x10]
shr eax, 8
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx + 8], al
mov eax, 1
imul ecx, eax, 3
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x10]
mov byte [edx + ecx + 8], al
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x5e7e88]
and edx, 0xff000000
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e7e88]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e7e88]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e7e88]
and ecx, 0xff
xor edx, ecx
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + eax + 0xc], cl
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx + 0xc], al
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx + 0xc], al
mov eax, 1
imul ecx, eax, 3
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x14]
mov byte [edx + ecx + 0xc], al
mov esp, ebp
pop ebp
ret