Function at 0x4c8130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jne 0x4c8157
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 0xd], 1
jmp 0x4c835c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
add eax, dword [ebp - 0xc]
shr eax, 4
shl eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
jae 0x4c8187
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov byte [ebp - 0xd], 0
jmp 0x4c835c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
jbe 0x4c8298
mov eax, dword [ebp - 4]
mov edx, 0x10
sub edx, dword [eax + 0x120]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jbe 0x4c81e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, dword [ebp - 4]
lea edx, [edx + eax + 0x110]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00402d34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add dword [eax + 0x120], edx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4c8298
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, dword [ebp - 4]
lea edx, [edx + eax + 0x110]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.00402d34
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]
lea esi, [eax + 0x110]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, 0x110
call fcn.004c5a98
mov eax, dword [ebp - 4]
add eax, 0x100
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, 0x104
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, 0x108
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, 0x10c
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
lea edi, [eax + 0x100]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x120], edx
cmp dword [ebp - 0xc], 0x10
jb 0x4c832a
mov eax, dword [ebp - 8]
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004c5a98
mov eax, dword [ebp - 4]
add eax, 0x100
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, 0x104
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, 0x108
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, 0x10c
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
xor dword [edx], eax
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
lea edi, [eax + 0x100]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [ebp - 8], 0x10
sub dword [ebp - 0xc], 0x10
cmp dword [ebp - 0xc], 0x10
jae 0x4c82a2
cmp dword [ebp - 0xc], 0
jbe 0x4c8350
mov edx, dword [ebp - 4]
add edx, 0x110
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00402d34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x120], 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]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8