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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp byte [esi + 4], 0
je 0x1006a1ff
push ebx
push edi
mov edi, dword [ebp + 8]
movzx ebx, byte [edi]
movzx edx, byte [edi + 1]
movzx ecx, byte [edi + 2]
movzx eax, byte [edi + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [edi + 6]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edi + 7]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 4]
xor ebx, dword [esi + 8]
movzx esi, byte [edi + 5]
shl eax, 8
or eax, esi
mov dword [ebp - 8], ebx
movzx esi, byte [edi + 9]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 0xa]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x10]
xor eax, dword [ecx + 0xc]
movzx ecx, byte [edi + 8]
mov dword [ebp + 8], ecx
shl dword [ebp + 8], 8
or dword [ebp + 8], esi
mov esi, dword [ebp + 8]
movzx ecx, byte [edi + 0xb]
shl esi, 8
or esi, edx
mov edx, esi
mov dword [ebp + 8], esi
shl edx, 8
or edx, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + 0x10]
movzx ecx, byte [edi + 0xd]
mov dword [ebp + 8], edx
movzx edx, byte [edi + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xf]
mov edi, dword [ebp - 0x10]
shl edx, 8
or edx, ecx
xor edx, dword [edi + 0x14]
mov esi, dword [edi + 0x3d0]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], esi
cmp esi, 1
jle 0x1006a089
lea ecx, [edi + 0x30]
mov dword [ebp - 8], ecx
lea ecx, [esi - 1]
mov dword [ebp - 0x14], ecx
nop
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx ecx, cl
sar edx, 8
movzx edx, dl
mov edi, dword [edx*4 + 0x101c6688]
xor edi, dword [ecx*4 + 0x101c6288]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
xor edi, dword [ecx*4 + 0x101c5e88]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x101c6a88]
mov ecx, dword [ebp - 8]
xor edi, dword [ecx - 4]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
mov esi, dword [edx*4 + 0x101c6288]
xor esi, dword [ecx*4 + 0x101c5e88]
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x101c6688]
movzx ecx, al
xor esi, dword [ecx*4 + 0x101c6a88]
mov ecx, dword [ebp - 8]
xor esi, dword [ecx]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx edx, cl
mov ecx, eax
sar ecx, 8
movzx ecx, cl
sar eax, 0x10
mov edx, dword [edx*4 + 0x101c5e88]
movzx eax, al
xor edx, dword [ecx*4 + 0x101c6688]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x101c6288]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101c6a88]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
mov dword [ebp + 8], esi
mov ecx, dword [ecx*4 + 0x101c6688]
xor ecx, dword [eax*4 + 0x101c6288]
movzx eax, bl
xor ecx, dword [eax*4 + 0x101c5e88]
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x101c6a88]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
mov eax, edi
sub dword [ebp - 0x14], 1
mov ebx, ecx
jne 0x10069f70
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 8]
sar ecx, 0x18
movzx ecx, cl
shl esi, 5
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + edi + 8]
mov edx, ebx
mov esi, dword [ebp + 0xc]
sar edx, 0x18
xor dl, byte [ecx + str.cw]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
mov byte [esi], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 1], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
movzx ecx, cl
mov byte [esi + 2], dl
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 3], cl
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
mov ebx, dword [ebx + edi + 0xc]
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 4], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 5], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 8]
movzx ecx, cl
mov byte [esi + 6], dl
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x10]
mov edx, ebx
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
mov byte [esi + 8], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 8]
sar ecx, 8
mov byte [esi + 9], dl
mov edx, ebx
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + str.cw]
mov byte [esi + 0xa], dl
movzx ecx, al
sar eax, 8
movzx eax, al
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x14]
mov edx, ebx
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
pop edi
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 8]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 0xc], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + str.cw]
mov ecx, ebx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], cl
mov al, byte [eax + str.cw]
xor al, bl
mov byte [esi + 0xf], al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8