Function at 0x4a9a9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jne 0x4a9ac1
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 0xd], 1
jmp 0x4a9c83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
add eax, dword [ebp - 0xc]
shr eax, 3
shl eax, 3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
jae 0x4a9af1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov byte [ebp - 0xd], 0
jmp 0x4a9c83
mov eax, dword [ebp - 4]
cmp dword [eax + 0x90], 0
jbe 0x4a9be6
mov eax, dword [ebp - 4]
mov edx, 8
sub edx, dword [eax + 0x90]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jbe 0x4a9b4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
lea edx, [edx + eax + 0x88]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004029a4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add dword [eax + 0x90], edx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4a9be6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
lea edx, [edx + eax + 0x88]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.004029a4
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, 0x88
call fcn.004a9644
mov eax, dword [ebp - 4]
add eax, 0x80
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
add eax, 0x84
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x80], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x90], edx
cmp dword [ebp - 0xc], 8
jb 0x4a9c51
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004a9644
mov eax, dword [ebp - 4]
add eax, 0x80
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
add eax, 0x84
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x80], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x84], edx
add dword [ebp - 8], 8
sub dword [ebp - 0xc], 8
cmp dword [ebp - 0xc], 8
jae 0x4a9bec
cmp dword [ebp - 0xc], 0
jbe 0x4a9c77
mov edx, dword [ebp - 4]
add edx, 0x88
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004029a4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x90], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8