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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x4072b8
cmp dword [ebp + 0xc], 0
je 0x4072b8
cmp dword [ebp + 0x10], 0
jne 0x4072c0
or eax, 0xffffffff
jmp 0x4077ca
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xf0]
sar edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x4496f0]
xor edx, dword [ecx*4 + 0x449af0]
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x449ef0]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x44a2f0]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0x10]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x4496f0]
xor eax, dword [edx*4 + 0x449af0]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x449ef0]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x44a2f0]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x4496f0]
xor ecx, dword [eax*4 + 0x449af0]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x449ef0]
mov eax, dword [ebp - 4]
and eax, 0xff
xor ecx, dword [eax*4 + 0x44a2f0]
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 0x18]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x4496f0]
xor edx, dword [ecx*4 + 0x449af0]
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x449ef0]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x44a2f0]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0x1c]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
jne 0x4074ba
jmp 0x4075ea
mov eax, dword [ebp - 0x28]
shr eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x4496f0]
xor edx, dword [ecx*4 + 0x449af0]
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x449ef0]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x44a2f0]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov edx, dword [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x4496f0]
xor eax, dword [edx*4 + 0x449af0]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x449ef0]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x44a2f0]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x4496f0]
xor ecx, dword [eax*4 + 0x449af0]
mov edx, dword [ebp - 0x28]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x449ef0]
mov eax, dword [ebp - 0x10]
and eax, 0xff
xor ecx, dword [eax*4 + 0x44a2f0]
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x4496f0]
xor edx, dword [ecx*4 + 0x449af0]
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x449ef0]
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x44a2f0]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
jmp 0x407375
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
movzx edx, byte [ecx + 0x44a6f0]
shl edx, 0x18
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp - 8]
ror edx, 8
and edx, 0xff00ff00
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
movzx edx, byte [ecx + 0x44a6f0]
shl edx, 0x18
mov eax, dword [ebp - 0x28]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp - 0x18]
ror edx, 8
and edx, 0xff00ff00
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
movzx edx, byte [ecx + 0x44a6f0]
shl edx, 0x18
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x28]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp - 0x14]
ror edx, 8
and edx, 0xff00ff00
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx edx, byte [ecx + 0x44a6f0]
shl edx, 0x18
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x28]
and eax, 0xff
movzx ecx, byte [eax + 0x44a6f0]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp - 4]
ror edx, 8
and edx, 0xff00ff00
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret