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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6a1da0]
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 0x506308
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x506322
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 0x5062ff
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 0x5063a0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x48]
jg 0x5063a0
jmp 0x50635e
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 0x506388
cmp dword [ebp - 0x34], 4
jge 0x506388
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 0x50634c
cmp dword [ebp - 0x34], 4
jne 0x50639e
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
jmp 0x506337
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x50660c
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx*4 - 0x2f]
movzx ecx, byte [eax + str.cw]
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 + str.cw]
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 + str.cw]
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 + str.cw]
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 + 0x69d438]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 8
je 0x506465
mov dword [ebp - 0x38], 1
jmp 0x506441
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 4]
jge 0x506460
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 0x506438
jmp 0x506597
mov dword [ebp - 0x38], 1
jmp 0x506477
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 0x50649b
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 0x50646e
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 + str.cw]
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 + str.cw]
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 + str.cw]
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 + str.cw]
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 0x506578
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x506597
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 0x50656f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jge 0x506607
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x506607
jmp 0x5065c5
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 0x5065ef
cmp dword [ebp - 0x34], 4
jge 0x5065ef
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 0x5065b3
cmp dword [ebp - 0x34], 4
jne 0x506605
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0
jmp 0x50659e
jmp 0x5063a0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005aed03
mov esp, ebp
pop ebp
ret 8