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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 4], 0
je 0x10069e84
push ebx
push esi
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 7]
xor ebx, dword [edi + 0x1e8]
mov dword [ebp + 8], ebx
movzx ebx, byte [esi + 4]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 9]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 0xa]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xb]
xor ebx, dword [edi + 0x1ec]
mov dword [ebp - 4], ebx
movzx ebx, byte [esi + 8]
shl ebx, 8
or ebx, edx
mov edx, dword [edi + 0x3d0]
shl ebx, 8
or ebx, ecx
mov dword [ebp - 0xc], edx
movzx ecx, byte [esi + 0xd]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xc]
xor ebx, dword [edi + 0x1f0]
shl eax, 8
or eax, ecx
mov dword [ebp - 8], ebx
movzx ecx, byte [esi + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xf]
shl eax, 8
or eax, ecx
xor eax, dword [edi + 0x1f4]
cmp edx, 1
jle 0x10069d04
lea ecx, [edi + 0x210]
mov dword [ebp - 8], ecx
lea ecx, [edx - 1]
mov dword [ebp - 0x10], ecx
mov ecx, eax
sar ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
mov edi, dword [edx*4 + 0x101c7688]
xor edi, dword [ecx*4 + 0x101c6e88]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x101c7288]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x101c7a88]
mov ecx, dword [ebp - 8]
xor edi, dword [ecx - 4]
mov ecx, ebx
sar ecx, 0x18
movzx edx, cl
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx ecx, cl
mov esi, dword [edx*4 + 0x101c6e88]
xor esi, dword [ecx*4 + 0x101c7288]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x101c7688]
movzx ecx, al
xor esi, dword [ecx*4 + 0x101c7a88]
mov ecx, dword [ebp - 8]
xor esi, dword [ecx]
mov ecx, eax
sar ecx, 0x18
movzx edx, cl
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
sar eax, 0x10
mov edx, dword [edx*4 + 0x101c6e88]
sar ebx, 8
xor edx, dword [ecx*4 + 0x101c7288]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101c7688]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101c7a88]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 4]
movzx ecx, al
movzx eax, bl
mov ebx, esi
mov ecx, dword [ecx*4 + 0x101c7288]
xor ecx, dword [eax*4 + 0x101c7688]
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x101c6e88]
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x101c7a88]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
mov eax, edx
sub dword [ebp - 0x10], 1
mov dword [ebp + 8], ecx
jne 0x10069be8
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
shl edx, 5
sar ecx, 0x18
movzx ecx, cl
mov dword [ebp - 0xc], edx
mov ebx, dword [edx + edi + 0x1e8]
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + 0x101c5d88]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
mov byte [esi], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x101c5d88]
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 + 0x101c5d88]
mov byte [esi + 2], dl
mov edx, dword [ebp - 4]
movzx ecx, dl
movzx ecx, byte [ecx + 0x101c5d88]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 3], cl
mov ecx, edx
sar ecx, 0x18
movzx ecx, cl
mov ebx, dword [ebx + edi + 0x1ec]
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + 0x101c5d88]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
mov byte [esi + 4], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x101c5d88]
mov ecx, eax
sar ecx, 8
mov byte [esi + 5], dl
mov edx, ebx
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x101c5d88]
mov byte [esi + 6], dl
mov edx, dword [ebp - 8]
movzx ecx, dl
movzx ecx, byte [ecx + 0x101c5d88]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x1f0]
mov ecx, edx
sar ecx, 0x18
mov edx, ebx
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x101c5d88]
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 + 0x101c5d88]
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 + 0x101c5d88]
mov byte [esi + 0xa], dl
movzx ecx, al
sar eax, 0x18
movzx eax, al
movzx ecx, byte [ecx + 0x101c5d88]
xor cl, bl
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + edi + 0x1f4]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x101c5d88]
mov eax, dword [ebp - 8]
sar eax, 0x10
movzx eax, al
mov byte [esi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x101c5d88]
mov eax, dword [ebp - 4]
sar eax, 8
movzx eax, al
mov byte [esi + 0xd], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x101c5d88]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x101c5d88]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8