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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004032d0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x403a4c
mov eax, dword [ebp - 0x14]
jmp 0x403e2e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xf0]
shl edx, 2
mov dword [ebp - 0xc], edx
jmp 0x403a7c
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x403b41
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 4]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 8]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 0xc]
mov dword [ecx + eax*4 + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x403a6a
mov dword [ebp - 8], 1
jmp 0x403b53
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0xf0]
jge 0x403e2c
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + ecx]
shr ecx, 0x10
and ecx, 0xff
mov eax, dword [ecx*4 + 0x6133c0]
and eax, 0xff
mov ecx, dword [edx*4 + 0x6127c0]
xor ecx, dword [eax*4 + 0x6123c0]
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + 0x6133c0]
and edx, 0xff
xor ecx, dword [edx*4 + 0x611fc0]
mov eax, 4
imul edx, eax, 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx]
and edx, 0xff
mov eax, dword [edx*4 + 0x6133c0]
and eax, 0xff
xor ecx, dword [eax*4 + 0x611bc0]
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
shr edx, 0x18
mov eax, dword [edx*4 + 0x6133c0]
and eax, 0xff
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
mov eax, dword [eax*4 + 0x6127c0]
xor eax, dword [edx*4 + 0x6123c0]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
xor eax, dword [edx*4 + 0x611fc0]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
xor eax, dword [edx*4 + 0x611bc0]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
shr edx, 0x18
mov eax, dword [edx*4 + 0x6133c0]
and eax, 0xff
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
mov eax, dword [eax*4 + 0x6127c0]
xor eax, dword [edx*4 + 0x6123c0]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
xor eax, dword [edx*4 + 0x611fc0]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
xor eax, dword [edx*4 + 0x611bc0]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
shr eax, 0x18
mov ecx, dword [eax*4 + 0x6133c0]
and ecx, 0xff
mov edx, 4
imul eax, edx, 3
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x6133c0]
and edx, 0xff
mov eax, dword [ecx*4 + 0x6127c0]
xor eax, dword [edx*4 + 0x6123c0]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + 0x6133c0]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x611fc0]
mov edx, 4
imul ecx, edx, 3
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x6133c0]
and edx, 0xff
xor eax, dword [edx*4 + 0x611bc0]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
jmp 0x403b4a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret