Function at 0x40ae70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edx, 0x95d90059
push esi
push ebx
mov edi, 0xd92a4a78
mov ecx, 0x1367df5a
mov esi, edx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0xc], 0x30609119
mov dword [esp + 8], 0xc4efea1b
mov dword [esp + 4], 0xa51a3c49
mov dword [esp], 0xf421ad8
mov dword [esp + 0x1c], eax
add eax, 0x400
mov dword [esp + 0x18], eax
mov eax, 0xc3163e4b
add esi, dword [ebp + 4]
add eax, dword [ebp + 8]
add ecx, dword [ebp]
mov edx, esi
mov ebx, eax
add esi, eax
shl edx, 0xb
shr ebx, 2
xor edx, ecx
xor esi, ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
add edx, dword [ebp + 0xc]
add edx, dword [esp]
mov ecx, dword [esp + 4]
add ebx, esi
add ebx, edi
mov edi, edx
add eax, edx
add edx, ebx
shl edi, 8
xor eax, edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
add edi, eax
add ecx, edi
mov edi, ebx
shr edi, 0x10
add ebx, ecx
xor edi, edx
mov edx, dword [esp + 8]
mov dword [esp], edi
add edi, dword [ebp + 0x18]
add edx, edi
mov edi, ecx
shl edi, 0xa
mov eax, edx
add ecx, edx
xor edi, ebx
mov ebx, dword [ebp + 0x1c]
shr eax, 4
xor ecx, eax
mov dword [ebp + 0x10], edi
mov eax, ecx
mov ecx, dword [esp + 0x10]
add ebx, edi
add ebx, dword [esp + 0xc]
mov dword [esp + 4], eax
add ecx, eax
mov eax, ebx
add edx, ebx
shl eax, 8
add ebx, ecx
add ebp, 0x20
xor edx, eax
mov eax, ecx
shr eax, 9
add esi, edx
mov dword [esp + 8], edx
mov edx, eax
mov eax, dword [esp + 0x14]
add ecx, esi
xor edx, ebx
mov ebx, dword [esp]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0xc], edx
mov dword [ebp - 0x1c], esi
add eax, edx
mov edx, dword [esp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [esp + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ebx
mov ebx, dword [esp + 0xc]
mov dword [ebp - 4], ebx
cmp dword [esp + 0x18], ebp
jne 0x40aec1
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov ebp, edi
mov edi, esi
mov esi, ecx
mov esi, esi
lea edi, [edi]
add edi, dword [ebx + 4]
add esi, dword [ebx]
add eax, dword [ebx + 8]
mov edx, edi
shl edx, 0xb
mov ecx, eax
add edi, eax
xor edx, esi
shr ecx, 2
mov dword [esp + 0x10], edx
add edx, dword [ebx + 0xc]
xor edi, ecx
add edx, dword [esp]
mov ecx, dword [ebx + 0x10]
add ecx, edi
mov esi, edx
add ecx, ebp
add eax, edx
shl esi, 8
mov ebp, ecx
add edx, ecx
xor eax, esi
mov esi, dword [ebx + 0x14]
shr ebp, 0x10
xor ebp, edx
mov edx, dword [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp], ebp
add ebp, dword [ebx + 0x18]
add esi, eax
add esi, dword [esp + 4]
add edx, ebp
mov ebp, esi
add ecx, esi
mov eax, edx
shl ebp, 0xa
add esi, edx
shr eax, 4
xor ebp, ecx
mov ecx, dword [ebx + 0x1c]
xor esi, eax
mov eax, esi
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x10], ebp
mov dword [esp + 4], eax
add ecx, ebp
add ecx, dword [esp + 0xc]
add esi, eax
mov eax, ecx
add edx, ecx
shl eax, 8
add ecx, esi
add ebx, 0x20
xor edx, eax
mov eax, esi
shr eax, 9
add edi, edx
mov dword [esp + 8], edx
mov edx, eax
mov eax, dword [esp + 0x14]
add esi, edi
xor edx, ecx
mov ecx, dword [esp]
mov dword [ebx - 0x20], esi
mov dword [esp + 0xc], edx
mov dword [ebx - 0x1c], edi
add eax, edx
mov edx, dword [esp + 8]
mov dword [ebx - 0x14], ecx
mov ecx, dword [esp + 4]
mov dword [ebx - 0x18], eax
mov dword [ebx - 8], edx
mov dword [ebx - 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [ebx - 4], ecx
cmp dword [esp + 0x18], ebx
jne 0x40afb0
mov eax, dword [esp + 0x34]
mov dword [eax + 0x408], 0
mov dword [eax + 0x404], 0
mov dword [eax + 0x400], 0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret