Function at 0x4aaf10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x68db24]
push dword [0x68db20]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004aaea0
mov edi, edx
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], edi
cmp edx, 0x40
jbe 0x4ab0a3
lea eax, [edx - 0x41]
mov edi, 0x68db38
sub edi, esi
shr eax, 6
inc eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4aaf65
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], 4
nop dword [eax]
mov eax, dword [edi + esi + 0xc]
xor eax, dword [esi + 0xc]
mov ecx, dword [edi + esi + 8]
xor ecx, dword [esi + 8]
mov ebx, dword [edi + esi]
xor ebx, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + esi + 4]
xor eax, dword [esi + 4]
push 0
push eax
push 0
push ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
call fcn.005b04e0
push 0
push dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x24], edx
push 0
push ebx
call fcn.005b04e0
add eax, edi
mov ebx, edx
xor edi, edi
mov dword [ebp + 0x10], eax
push edi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x1c]
call fcn.005b04e0
push 0
push dword [ebp - 0x20]
add edi, eax
push 0
push dword [ebp - 0xc]
adc dword [ebp + 0x10], edx
call fcn.005b04e0
mov ecx, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp + 0x10]
adc eax, edx
mov edx, dword [ebp + 0xc]
add edi, ebx
adc eax, 0
add edi, dword [ebp - 0x24]
adc eax, 0
xor edx, edi
mov edi, dword [ebp - 8]
xor ecx, eax
add esi, 0x10
mov dword [ebp + 0xc], edx
sub dword [ebp - 0x10], 1
mov dword [ebp - 4], ecx
jne 0x4aaf70
sub dword [ebp + 0x14], 0x40
mov eax, ecx
sub dword [ebp - 8], 0x40
mov ebx, edx
push 0
push eax
push 0
push dword [0x68db28]
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xc], ebx
call fcn.005b04e0
push 0
push dword [0x68db2c]
mov edi, eax
mov dword [ebp - 0x20], edx
push 0
push ebx
call fcn.005b04e0
add eax, edi
mov ebx, edx
xor edi, edi
mov dword [ebp - 4], eax
push edi
push dword [ebp + 0xc]
push edi
push dword [0x68db28]
call fcn.005b04e0
push 0
push dword [ebp - 0x24]
add edi, eax
push 0
push dword [0x68db2c]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
adc edi, edx
call fcn.005b04e0
mov ecx, dword [ebp + 0xc]
add ecx, eax
adc edi, edx
add ecx, ebx
adc edi, 0
add ecx, dword [ebp - 0x20]
mov dword [ebp + 0xc], ecx
adc edi, 0
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], edi
jne 0x4aaf62
mov edx, dword [ebp + 0x14]
mov eax, edx
shr eax, 3
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4ab151
mov ebx, 0x68db38
mov dword [ebp - 0x24], esi
sub ebx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ebx
push 0
push dword [esi + 4]
push 0
push dword [esi + ebx]
call fcn.005b04e0
push 0
push dword [esi + ebx + 4]
mov edi, eax
mov dword [ebp - 0x24], edx
push 0
push dword [esi]
call fcn.005b04e0
add eax, edi
mov ebx, edx
xor edi, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push edi
push dword [esi]
push edi
push dword [esi + eax]
call fcn.005b04e0
push 0
push dword [esi + 4]
add edi, eax
mov eax, dword [ebp - 0xc]
push 0
adc dword [ebp - 8], edx
push dword [esi + eax + 4]
call fcn.005b04e0
mov ecx, dword [ebp + 0xc]
lea esi, [esi + 8]
add edi, eax
mov eax, dword [ebp - 8]
adc eax, edx
add edi, ebx
mov ebx, dword [ebp - 0xc]
adc eax, 0
add edi, dword [ebp - 0x24]
adc eax, 0
xor ecx, edi
mov edi, dword [ebp - 4]
xor edi, eax
mov dword [ebp + 0xc], ecx
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], edi
jne 0x4ab0c3
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
shl eax, 3
sub edx, eax
add esi, eax
dec edx
cmp edx, 6
ja case.default.0x4ab162
jmp dword [edx*4 + 0x4ab290]
movzx eax, byte [esi + 6]
push dword [0x68db34]
cdq
push dword [0x68db30]
mov ecx, eax
movzx eax, word [esi + 4]
shld edx, ecx, 0x10
cdq
shl ecx, 0x10
or ecx, eax
xor eax, eax
or eax, dword [esi]
push ecx
push eax
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x68db34]
movzx eax, word [esi + 4]
xor ecx, ecx
push dword [0x68db30]
or ecx, dword [esi]
cdq
push eax
push ecx
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x68db34]
movzx eax, byte [esi + 4]
xor ecx, ecx
push dword [0x68db30]
or ecx, dword [esi]
cdq
push eax
push ecx
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x68db34]
push dword [0x68db30]
push 0
push dword [esi]
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 2]
push dword [0x68db34]
cdq
push dword [0x68db30]
mov edi, eax
mov ecx, edx
movzx eax, word [esi]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
push ecx
push edi
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push dword [0x68db34]
cdq
push dword [0x68db30]
push edx
push eax
call fcn.004aaea0
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi]
jmp 0x4ab25c
mov edx, edi
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret