Function at 0x403e70
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x403e88
cmp dword [ebp + 0xc], 0
je 0x403e88
cmp dword [ebp + 0x10], 0
jne 0x403e90
or eax, 0xffffffff
jmp 0x404452
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 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, 4
imul ecx, eax, 0
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx]
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, 4
shl eax, 0
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
rol eax, 8
and eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
ror edx, 8
and edx, 0xff00ff00
or 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, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov edx, 4
imul eax, edx, 3
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xf0]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x614790]
xor ecx, dword [eax*4 + 0x614390]
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x613f90]
mov eax, dword [ebp - 0x24]
and eax, 0xff
xor ecx, dword [eax*4 + 0x613b90]
mov edx, 4
shl edx, 2
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x614790]
xor eax, dword [edx*4 + 0x614390]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x613f90]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x613b90]
mov ecx, 4
imul edx, ecx, 5
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
shr edx, 0x18
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x614790]
xor ecx, dword [eax*4 + 0x614390]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x613f90]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x613b90]
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x24]
shr eax, 0x18
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x614790]
xor edx, dword [ecx*4 + 0x614390]
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x613f90]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x613b90]
mov eax, 4
imul ecx, eax, 7
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
jne 0x4040c7
jmp 0x404217
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x614790]
xor edx, dword [ecx*4 + 0x614390]
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x613f90]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x613b90]
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 4]
xor edx, dword [eax + ecx]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x614790]
xor eax, dword [edx*4 + 0x614390]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x613f90]
mov edx, dword [ebp - 0x18]
and edx, 0xff
xor eax, dword [edx*4 + 0x613b90]
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 - 0x20]
shr eax, 0x18
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x614790]
xor edx, dword [ecx*4 + 0x614390]
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x613f90]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x613b90]
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x614790]
xor ecx, dword [eax*4 + 0x614390]
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x613f90]
mov eax, dword [ebp - 0x20]
and eax, 0xff
xor ecx, dword [eax*4 + 0x613b90]
mov edx, 4
imul eax, edx, 3
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov dword [ebp - 0x24], ecx
jmp 0x403f63
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov ecx, dword [eax*4 + 0x613f90]
and ecx, 0xff000000
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + 0x613b90]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 0x20]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + 0x614790]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [edx*4 + 0x614390]
and eax, 0xff
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, dword [ebp - 8]
rol eax, 8
and eax, 0xff00ff
mov ecx, dword [ebp - 8]
ror ecx, 8
and ecx, 0xff00ff00
or eax, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov ecx, dword [eax*4 + 0x613f90]
and ecx, 0xff000000
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + 0x613b90]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + 0x614790]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov eax, dword [edx*4 + 0x614390]
and eax, 0xff
xor ecx, eax
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp - 0xc]
ror edx, 8
and edx, 0xff00ff00
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x613f90]
and edx, 0xff000000
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x613b90]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x614790]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
mov ecx, dword [eax*4 + 0x614390]
and ecx, 0xff
xor edx, ecx
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp - 0x10]
ror eax, 8
and eax, 0xff00ff00
or edx, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [edx*4 + 0x613f90]
and eax, 0xff000000
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x613b90]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + 0x614790]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x614390]
and edx, 0xff
xor eax, edx
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp - 0x24]
ror eax, 8
and eax, 0xff00ff00
or edx, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], edx
xor eax, eax
mov esp, ebp
pop ebp
ret