Function at 0x605495
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
shr ebx, 2
mov edi, ecx
lea eax, [ebx + 6]
mov dword [ebp - 8], edi
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x10]
lea eax, [eax*4 + 4]
push eax
call fcn.006062c6
push dword [ebp + 0x10]
mov esi, dword [edi + 0x18]
push dword [ebp + 0xc]
push ebx
push esi
push 1
call fcn.006062ed
add esp, 0x14
xor ecx, ecx
cmp dword [ebp + 0x10], 0x10
mov eax, 0xff
je 0x605699
cmp dword [ebp + 0x10], 0x18
je 0x6055f4
cmp dword [ebp + 0x10], 0x20
jne 0x60572d
mov dword [ebp + 0x10], ecx
mov edx, 0xff000000
mov edi, 0xff00
mov ebx, dword [esi + 0x1c]
mov ecx, ebx
shr ebx, 8
movzx ebx, bl
shr ecx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff0000
and ecx, eax
xor ecx, ebx
mov ebx, dword [esi + 0x1c]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edx
xor ecx, ebx
movzx ebx, byte [esi + 0x1c]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
xor ecx, dword [ebx + 0x86f630]
lea ebx, [esi + 0x20]
mov dword [ebp - 4], ebx
xor ecx, dword [esi]
mov dword [ebx], ecx
mov ebx, dword [esi + 4]
xor ebx, ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x24], ebx
xor ecx, ebx
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x28], ecx
xor ebx, ecx
cmp dword [ebp + 0x10], 0x1c
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x2c], ebx
je 0x60572a
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
mov ecx, dword [ecx*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff0000
and ebx, edx
xor ecx, ebx
mov ebx, dword [ebp + 0xc]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor ecx, ebx
movzx ebx, byte [ebp + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor ecx, ebx
mov ebx, dword [esi + 0x14]
xor ecx, dword [esi + 0x10]
mov dword [esi + 0x30], ecx
xor ebx, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x34], ebx
xor ecx, ebx
mov dword [esi + 0x38], ecx
xor ecx, dword [esi + 0x1c]
mov dword [esi + 0x3c], ecx
mov esi, dword [ebp - 4]
jmp 0x605505
mov dword [ebp + 0x10], ecx
mov edx, 0xff000000
mov edi, 0xff00
mov ebx, dword [esi + 0x14]
mov ecx, ebx
shr ebx, 8
movzx ebx, bl
shr ecx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff0000
and ecx, eax
xor ecx, ebx
mov ebx, dword [esi + 0x14]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edx
xor ecx, ebx
movzx ebx, byte [esi + 0x14]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
xor ecx, dword [ebx + 0x86f630]
lea ebx, [esi + 0x18]
mov dword [ebp + 0xc], ebx
xor ecx, dword [esi]
mov dword [ebx], ecx
mov ebx, dword [esi + 4]
xor ebx, ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], ebx
xor ecx, ebx
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x20], ecx
xor ebx, ecx
cmp dword [ebp + 0x10], 0x20
mov dword [esi + 0x24], ebx
je 0x60572a
mov ecx, dword [esi + 0x10]
xor ecx, ebx
mov dword [esi + 0x28], ecx
xor ecx, dword [esi + 0x14]
mov dword [esi + 0x2c], ecx
mov esi, dword [ebp + 0xc]
jmp 0x605601
mov dword [ebp + 0x10], ecx
mov edx, 0xff000000
mov edi, 0xff00
mov ebx, dword [esi + 0xc]
mov ecx, ebx
shr ebx, 8
movzx ebx, bl
shr ecx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff0000
and ecx, eax
xor ecx, ebx
mov ebx, dword [esi + 0xc]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edx
xor ecx, ebx
movzx ebx, byte [esi + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
xor ecx, dword [ebx + 0x86f630]
lea ebx, [esi + 0x10]
mov dword [ebp + 0xc], ebx
xor ecx, dword [esi]
mov dword [ebx], ecx
mov ebx, dword [esi + 4]
xor ebx, ecx
mov ecx, dword [esi + 8]
xor ecx, ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ecx
xor ecx, dword [esi + 0xc]
cmp dword [ebp + 0x10], 0x28
mov dword [esi + 0x1c], ecx
je 0x60572a
mov esi, dword [ebp + 0xc]
jmp 0x6056a6
mov edi, dword [ebp - 8]
cmp dword [ebp + 8], 1
jne 0x605920
mov edx, dword [edi + 0xc]
and dword [ebp + 0xc], 0
mov ecx, dword [edi + 0x18]
shl edx, 2
mov dword [ebp + 8], edx
je 0x6057aa
lea esi, [ecx + edx*4 + 8]
lea edx, [ecx + 8]
mov ebx, dword [edx - 8]
add dword [ebp + 0xc], 4
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi - 8]
mov dword [edx - 8], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi - 8], ebx
mov ebx, dword [edx - 4]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi - 4]
mov dword [edx - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi - 4], ebx
mov ebx, dword [edx]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi]
mov dword [edx], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi], ebx
mov ebx, dword [edx + 4]
sub dword [ebp + 8], 4
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi + 4]
sub esi, 0x10
mov dword [edx + 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov ebx, dword [ebp + 0xc]
add edx, 0x10
cmp ebx, dword [ebp + 8]
jb 0x605750
xor esi, esi
inc esi
cmp dword [edi + 0xc], esi
jbe 0x605920
add ecx, 0x10
mov edx, dword [ecx]
movzx ebx, byte [ecx + 2]
shr edx, 8
mov ebx, dword [ebx*4 + str.ccccwwww]
movzx edx, dl
and ebx, eax
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x86ea30]
xor edx, dword [ebx*4 + 0x86e630]
movzx ebx, byte [ecx + 3]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86e230]
movzx ebx, byte [ecx]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86ee30]
movzx ebx, byte [ecx + 6]
mov dword [ecx], edx
mov edx, dword [ecx + 4]
shr edx, 8
mov ebx, dword [ebx*4 + str.ccccwwww]
movzx edx, dl
and ebx, eax
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x86ea30]
xor edx, dword [ebx*4 + 0x86e630]
movzx ebx, byte [ecx + 7]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86e230]
movzx ebx, byte [ecx + 4]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86ee30]
movzx ebx, byte [ecx + 0xa]
mov dword [ecx + 4], edx
mov edx, dword [ecx + 8]
shr edx, 8
mov ebx, dword [ebx*4 + str.ccccwwww]
movzx edx, dl
and ebx, eax
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x86ea30]
xor edx, dword [ebx*4 + 0x86e630]
movzx ebx, byte [ecx + 0xb]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86e230]
movzx ebx, byte [ecx + 8]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86ee30]
movzx ebx, byte [ecx + 0xe]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 0xc]
shr edx, 8
mov ebx, dword [ebx*4 + str.ccccwwww]
movzx edx, dl
and ebx, eax
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x86ea30]
xor edx, dword [ebx*4 + 0x86e630]
movzx ebx, byte [ecx + 0xf]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86e230]
movzx ebx, byte [ecx + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, dword [ebx*4 + 0x86ee30]
inc esi
mov dword [ecx + 0xc], edx
cmp esi, dword [edi + 0xc]
jb 0x6057b6
pop edi
pop esi
pop ebx
leave
ret 0xc