Function at 0x40ae60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push 0x10
mov dword [ebp - 0x24], edi
call fcn.00418531
mov edx, dword [edi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.00418531
mov dword [ebx], eax
mov ecx, eax
mov eax, dword [edi]
add esp, 8
add eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [edi]
lea eax, [ecx + eax*2]
mov dword [ebx + 8], eax
mov eax, dword [edi]
lea ecx, [ecx + eax*2]
add ecx, eax
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [ebp - 0x10], ecx
nop dword [eax]
xor edx, edx
test eax, eax
jle 0x40aed5
mov esi, dword [ebp + 8]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x40aec0
mov ecx, dword [ebp - 0x10]
inc ecx
add ebx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 4
jl 0x40aeb0
mov eax, dword [edi]
xor ecx, ecx
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], ecx
nop dword [eax + eax]
xor edx, edx
test eax, eax
jle 0x40af15
mov esi, dword [ebp + 0x10]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x40af00
mov ecx, dword [ebp + 8]
inc ecx
add ebx, 4
mov dword [ebp + 8], ecx
cmp ecx, 4
jl 0x40aef0
mov eax, dword [edi + 8]
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], 1
cmp eax, 1
jl 0x40b0ca
push ebx
mov ecx, edi
call fcn.0040b3d0
push 1
push 1
push ebx
mov ecx, edi
call fcn.0040b440
push 2
push 2
push ebx
mov ecx, edi
call fcn.0040b440
push 3
push 3
push ebx
mov ecx, edi
call fcn.0040b440
push 4
call fcn.00418531
mov edi, eax
xor edx, edx
mov ecx, edi
mov dword [ebp - 0x20], edi
neg ecx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 8]
add esp, 4
add eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov eax, dword [ebx]
mov esi, 4
movzx eax, byte [edx + eax]
mov byte [edi], al
mov eax, dword [ebx + 4]
movzx eax, byte [edx + eax]
mov byte [edi + 1], al
mov eax, dword [ebx + 8]
movzx eax, byte [edx + eax]
mov byte [edi + 2], al
mov eax, dword [ebx + 0xc]
movzx eax, byte [edx + eax]
mov edx, edi
mov byte [edi + 3], al
mov edi, dword [ebp - 0x18]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, cl
mov byte [edi + edx - 1], cl
sar al, 7
add cl, cl
and al, 0x1b
xor al, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x40afc0
mov ecx, dword [ebp - 8]
mov dl, ch
xor dl, byte [ebp - 6]
mov bh, byte [ebp - 5]
mov edi, dword [ebp - 0x20]
xor dl, bh
mov eax, dword [ebp - 0xc]
xor dl, al
mov dh, byte [ebp - 9]
xor dl, ah
mov byte [ebp + 0xb], dl
xor dh, cl
mov byte [edi], dl
mov dl, cl
xor dl, byte [ebp - 0xa]
xor dl, byte [ebp - 6]
mov cl, byte [ebp + 0xb]
xor dl, bh
xor dl, ah
mov byte [edi + 1], dl
mov dl, dh
xor dl, byte [ebp - 0xa]
xor dh, ch
xor dh, byte [ebp - 6]
xor dl, ch
xor dl, bh
xor dh, al
mov ebx, dword [ebp - 4]
mov byte [edi + 2], dl
mov byte [edi + 3], dh
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov byte [edx + eax], cl
mov ecx, dword [ebx + 4]
movzx eax, byte [edi + 1]
mov byte [edx + ecx], al
mov ecx, dword [ebx + 8]
movzx eax, byte [edi + 2]
mov byte [edx + ecx], al
mov ecx, dword [ebx + 0xc]
movzx eax, byte [edi + 3]
mov byte [edx + ecx], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 4
jl 0x40af90
push edi
call fcn.0041829d
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi]
mov eax, ecx
imul eax, dword [ebp - 0x10]
lea esi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 8], edx
xor eax, eax
test ecx, ecx
jle 0x40b0a8
add esi, edx
nop dword [eax]
mov edx, dword [ebx]
lea esi, [esi + 4]
mov cl, byte [esi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jl 0x40b090
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
inc edx
add ebx, 4
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x40b081
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
inc esi
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], esi
cmp esi, eax
jle 0x40af38
push ebx
mov ecx, edi
call fcn.0040b3d0
push 1
push 1
push ebx
mov ecx, edi
call fcn.0040b440
push 2
push 2
push ebx
mov ecx, edi
call fcn.0040b440
push 3
push 3
push ebx
mov ecx, edi
call fcn.0040b440
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
imul eax, ecx
mov dword [ebp + 8], ebx
lea esi, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x10], eax
nop
xor edx, edx
test ecx, ecx
jle 0x40b130
add esi, eax
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x40b118
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
inc eax
add ebx, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x40b110
mov eax, dword [edi]
xor ebx, ebx
mov esi, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x40b162
mov edx, dword [ebp + 0xc]
add edx, ebx
nop
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [edi]
cmp ecx, eax
jl 0x40b150
inc ebx
add esi, 4
cmp ebx, 4
jl 0x40b143
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.0041829d
push ebx
call fcn.0041829d
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc