Function at 0x10040e38
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
push edi
mov edi, eax
ror edi, 8
mov esi, 0xff00ff00
and edi, esi
rol eax, 8
mov edx, 0xff00ff
and eax, edx
or edi, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov ebx, edi
ror ebx, 8
and ebx, esi
rol edi, 8
and edi, edx
or ebx, edi
mov dword [eax + 4], ebx
mov edi, dword [ecx + 8]
mov ebx, edi
ror ebx, 8
and ebx, esi
rol edi, 8
and edi, edx
or ebx, edi
mov dword [eax + 8], ebx
mov edi, dword [ecx + 0xc]
mov ebx, edi
ror ebx, 8
and ebx, esi
rol edi, 8
and edi, edx
or ebx, edi
mov dword [eax + 0xc], ebx
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x80
jne 0x10040fca
mov esi, dword [eax + 0xc]
mov edx, esi
shr edx, 0x10
lea ecx, [ebx + 0x7f]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
mov edi, esi
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + str.ccccwwww]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + str.ccccwwww]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x10]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [esp + 0x1c], edx
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x1c]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x1c], edx
mov dword [esp + 0x14], 0x1006dc34
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0xc]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, esi
xor edx, ebp
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
xor edx, dword [eax]
lea ebp, [eax + 0x10]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x14], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x1006dc58
mov dword [eax + 0x1c], ebp
jne 0x10040f37
push 0xa
pop eax
jmp 0x100412d6
mov edi, dword [ecx + 0x10]
mov ebp, edi
ror ebp, 8
and ebp, esi
rol edi, 8
and edi, edx
or ebp, edi
mov dword [eax + 0x10], ebp
mov edi, dword [ecx + 0x14]
mov ebp, edi
ror ebp, 8
and ebp, esi
rol edi, 8
and edi, edx
or ebp, edi
mov dword [eax + 0x14], ebp
cmp ebx, 0xc0
jne 0x10041125
mov esi, ebp
mov edx, esi
shr edx, 0x10
lea ecx, [ebx + 0x3f]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
mov edi, esi
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + str.ccccwwww]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + str.ccccwwww]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x18]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x1c], ebp
mov ebp, dword [eax + 0xc]
xor ebp, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ebp
mov dword [esp + 0x14], 0x1006dc34
mov edx, dword [eax + 0x10]
xor edx, dword [eax + 0x24]
mov ebp, dword [eax + 0x14]
xor ebp, edx
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x28], edx
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0x14]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, esi
xor edx, ebp
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
xor edx, dword [eax]
lea ebp, [eax + 0x18]
mov dword [ebp], edx
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x1c], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x20], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x1006dc50
mov dword [eax + 0x24], ebp
jne 0x10041082
push 0xc
jmp 0x10040fc4
mov edi, dword [ecx + 0x18]
mov ebp, edi
ror ebp, 8
and ebp, esi
rol edi, 8
and edi, edx
or ebp, edi
mov dword [eax + 0x18], ebp
mov ecx, dword [ecx + 0x1c]
mov edi, ecx
ror edi, 8
and edi, esi
rol ecx, 8
and ecx, edx
or edi, ecx
mov dword [eax + 0x1c], edi
cmp ebx, 0x100
jne 0x100412d4
mov esi, edi
mov edx, esi
shr edx, 0x10
lea ecx, [ebx - 1]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
xor edx, 0x1000000
shr edi, 8
and edi, ecx
mov ebp, dword [edi*4 + str.ccccwwww]
mov ebx, 0xff000000
and edx, ebx
mov edi, 0xff0000
and ebp, edi
xor edx, ebp
mov ebp, esi
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
and esi, ecx
mov ebp, dword [esi*4 + str.ccccwwww]
mov esi, 0xff00
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
lea ebp, [eax + 0x20]
mov dword [ebp], edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x24], ebp
mov ebp, dword [eax + 0xc]
xor ebp, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ebp
mov dword [esp + 0x14], 0x1006dc34
mov ebp, dword [eax + 0x2c]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 8
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, esi
shr edx, 0x10
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, ebx
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
xor edx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
xor ebp, edx
mov dword [eax + 0x34], ebp
mov dword [eax + 0x30], edx
mov edx, dword [eax + 0x18]
xor edx, ebp
mov ebp, dword [eax + 0x1c]
xor ebp, edx
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x38], edx
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + 0x1c]
mov edx, ebp
mov dword [esp + 0x18], ebp
shr ebp, 0x10
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
shr edx, 8
and ebp, ebx
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, edi
xor edx, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor edx, ebp
mov ebp, dword [esp + 0x18]
and ebp, ecx
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, esi
xor edx, ebp
xor edx, dword [eax]
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp]
add dword [esp + 0x14], 4
lea ebp, [eax + 0x20]
mov dword [ebp], edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 4]
xor ebp, edx
mov dword [eax + 0x24], ebp
mov edx, dword [eax + 8]
xor edx, ebp
mov dword [eax + 0x28], edx
mov ebp, dword [eax + 0xc]
xor ebp, edx
cmp dword [esp + 0x14], 0x1006dc4c
mov dword [eax + 0x2c], ebp
jne 0x100411db
push 0xe
jmp 0x10040fc4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret