Function at 0x4aff40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ecx + 0x2a00]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], eax
lea eax, [ecx + 0x2a10]
push esi
push edi
mov dword [ebp - 0xc], eax
lea edi, [ecx + 0x16e8]
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x134
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, dword [edi - 0x16e8]
xor eax, eax
mov ecx, dword [edi - 0x16e4]
or eax, esi
mov edx, dword [edi - 0x16e0]
mov edi, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
shrd eax, ecx, 8
mov dword [ebp - 0x24], edx
xor edx, edx
or edx, eax
shr ecx, 8
xor eax, eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 8]
shl edi, 0x18
or edi, ecx
shl dword [ebp - 4], 6
mov dword [ebp - 0x30], edi
or eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edi, eax
shrd edi, ecx, 8
shr ecx, 8
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 4]
xor edx, edx
or edx, eax
mov eax, dword [ebp - 8]
shld edx, ecx, 0x18
shl ecx, 0x18
mov eax, dword [eax]
shr eax, 8
or ecx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
shr eax, 0x13
and eax, 0x1bff
xor eax, dword [ebp - 4]
xor eax, esi
xor eax, ecx
mov ecx, dword [ebp - 0x10]
lea esi, [ecx - 0x16e8]
mov dword [ebp - 4], eax
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx - 4]
shr ecx, 0x13
and ecx, 0x1f3f
xor ecx, edx
mov edx, dword [ebp - 0x1c]
shld eax, edx, 0x18
shl edx, 0x18
xor ecx, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
shl eax, 6
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [ebp - 0x20]
mov dword [eax - 0x16e4], ecx
mov ecx, dword [eax]
mov eax, dword [edx + 8]
shr ecx, 0x13
and ecx, 0xfff
shl eax, 6
xor ecx, eax
xor ecx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x28]
xor ecx, edi
mov edi, dword [ebp - 0x10]
mov dword [edi - 0x16e0], ecx
mov ecx, dword [edi + 4]
mov eax, dword [edx + 0xc]
shr ecx, 0x13
and ecx, 0x13ff
xor ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x30]
shl eax, 6
xor ecx, eax
mov dword [ebp - 8], edx
xor dword [edi - 0x16dc], ecx
add edi, 0x10
sub dword [ebp - 0x14], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
jne 0x4aff90
mov edx, dword [ebp - 0x34]
add edx, 8
mov dword [ebp - 0x14], 0x16e
mov dword [ebp - 0x10], edx
nop
mov edi, dword [edx + 0x1338]
xor eax, eax
mov ecx, dword [edx + 0x133c]
or eax, edi
mov edx, dword [edx + 0x1340]
mov esi, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
shrd eax, ecx, 8
mov dword [ebp - 0x28], edx
xor edx, edx
or edx, eax
shr ecx, 8
xor eax, eax
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 8]
shl esi, 0x18
or esi, ecx
shl dword [ebp - 4], 6
mov dword [ebp - 0x1c], esi
or eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov esi, eax
shrd esi, ecx, 8
shr ecx, 8
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 4]
xor edx, edx
or edx, eax
mov eax, dword [ebp - 8]
shld edx, ecx, 0x18
shl ecx, 0x18
mov eax, dword [eax]
shr eax, 8
or ecx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
shr eax, 0x13
and eax, 0x1bff
xor eax, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, edi
lea edi, [eax + 0x1338]
mov dword [edi], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [eax - 4]
mov eax, dword [ebp - 0x34]
shr ecx, 0x13
and ecx, 0x1f3f
xor ecx, edx
mov edx, dword [ebp - 0x30]
shld eax, edx, 0x18
mov eax, dword [ebp - 0xc]
shl edx, 0x18
xor ecx, edx
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
shl eax, 6
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x2c]
mov dword [edx + 0x133c], ecx
mov ecx, dword [edx]
mov eax, dword [eax + 8]
shr ecx, 0x13
and ecx, 0xfff
shl eax, 6
xor ecx, eax
xor ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x24]
xor ecx, esi
mov esi, dword [ebp - 0xc]
mov dword [edx + 0x1340], ecx
mov ecx, dword [edx + 4]
shr ecx, 0x13
mov eax, dword [esi + 0xc]
and ecx, 0x13ff
xor ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x1c]
shl eax, 6
xor ecx, eax
mov dword [ebp - 8], esi
xor dword [edx + 0x1344], ecx
add edx, 0x10
sub dword [ebp - 0x14], 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
jne 0x4b00c0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret