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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x680da0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x48]
sub ecx, 6
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], 0
jmp 0x506428
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x506442
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4]
mov dword [ebp + ecx*4 - 0x2c], edx
jmp 0x50641f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x5064c0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x48]
jg 0x5064c0
jmp 0x50647e
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jge 0x5064a8
cmp dword [ebp - 0x34], 4
jge 0x5064a8
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x4c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ebp + ecx*4 - 0x2c]
mov dword [edx + eax*4], ecx
jmp 0x50646c
cmp dword [ebp - 0x34], 4
jne 0x5064be
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
jmp 0x506457
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x50672c
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx*4 - 0x2f]
movzx ecx, byte [eax + 0x679238]
movzx edx, byte [ebp - 0x2c]
xor edx, ecx
mov byte [ebp - 0x2c], dl
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp + eax*4 - 0x2e]
movzx edx, byte [ecx + 0x679238]
movzx eax, byte [ebp - 0x2b]
xor eax, edx
mov byte [ebp - 0x2b], al
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx*4 - 0x2d]
movzx eax, byte [edx + 0x679238]
movzx ecx, byte [ebp - 0x2a]
xor ecx, eax
mov byte [ebp - 0x2a], cl
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx*4 - 0x30]
movzx ecx, byte [eax + 0x679238]
movzx edx, byte [ebp - 0x29]
xor edx, ecx
mov byte [ebp - 0x29], dl
movzx eax, byte [ebp - 0x2c]
mov ecx, dword [ebp - 8]
xor eax, dword [ecx*4 + 0x67c438]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 8
je 0x506585
mov dword [ebp - 0x38], 1
jmp 0x506561
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 4]
jge 0x506580
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + edx*4 - 0x2c]
xor ecx, dword [ebp + eax*4 - 0x30]
mov edx, dword [ebp - 0x38]
mov dword [ebp + edx*4 - 0x2c], ecx
jmp 0x506558
jmp 0x5066b7
mov dword [ebp - 0x38], 1
jmp 0x506597
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x38], eax
jge 0x5065bb
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + ecx*4 - 0x2c]
xor eax, dword [ebp + edx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x50658e
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx edx, byte [ebp + eax*4 - 0x30]
movzx eax, byte [edx + 0x679238]
movzx ecx, byte [ebp + ecx*4 - 0x2c]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2c], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx edx, byte [ebp + eax*4 - 0x2f]
movzx eax, byte [edx + 0x679238]
movzx ecx, byte [ebp + ecx*4 - 0x2b]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2b], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx edx, byte [ebp + eax*4 - 0x2e]
movzx eax, byte [edx + 0x679238]
movzx ecx, byte [ebp + ecx*4 - 0x2a]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2a], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx edx, byte [ebp + eax*4 - 0x2d]
movzx eax, byte [edx + 0x679238]
movzx ecx, byte [ebp + ecx*4 - 0x29]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x29], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov dword [ebp - 0x38], eax
jmp 0x506698
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x5066b7
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + ecx*4 - 0x2c]
xor eax, dword [ebp + edx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x50668f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jge 0x506727
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x506727
jmp 0x5066e5
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 4]
jge 0x50670f
cmp dword [ebp - 0x34], 4
jge 0x50670f
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx + 0x4c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [ecx + edx*4], eax
jmp 0x5066d3
cmp dword [ebp - 0x34], 4
jne 0x506725
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0
jmp 0x5066be
jmp 0x5064c0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0058e793
mov esp, ebp
pop ebp
ret 8