Function at 0x4dac68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword ss:[ebp + 0x14]
mov esi, dword ss:[ebp + 0xc]
mov eax, dword ss:[ebp + 8]
add eax, 0x3c
mov dword ss:[ebp - 4], eax
mov edi, 0x10
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x38]
mov dword ss:[ebp - 8], edx
mov ecx, dword ss:[ebp - 8]
add ecx, dword ss:[ebp + 0x10]
mov eax, dword ss:[ebp + 0x18]
mov dword ds:[eax], ecx
mov edx, dword ss:[ebp - 8]
add edx, dword ss:[ebp + 0x10]
cmp edi, edx
jb 0x4dace5
push dword ss:[ebp + 0x10]
push esi
mov ecx, dword ss:[ebp + 8]
add ecx, dword ss:[ebp - 8]
add ecx, 0x28
push ecx
call fcn.004d86f0
add esp, 0xc
mov eax, dword ss:[ebp + 8]
mov edx, dword ss:[ebp + 0x10]
add dword ds:[eax + 0x38], edx
mov ecx, dword ss:[ebp + 0x18]
xor eax, eax
mov dword ds:[ecx], eax
xor eax, eax
jmp 0x4daeed
cmp ebx, esi
jne 0x4dacf3
mov eax, 0x1001
jmp 0x4daeed
mov edx, dword ss:[ebp - 8]
add edx, dword ss:[ebp + 0x10]
mov ecx, dword ss:[ebp + 0x18]
mov dword ds:[ecx], edx
mov eax, edi
sub eax, dword ss:[ebp - 8]
push eax
push esi
mov edx, dword ss:[ebp + 8]
add edx, dword ss:[ebp - 8]
add edx, 0x28
push edx
call fcn.004d86f0
add esp, 0xc
mov ecx, edi
sub ecx, dword ss:[ebp - 8]
add esi, ecx
mov eax, edi
sub eax, dword ss:[ebp - 8]
sub dword ss:[ebp + 0x10], eax
mov edx, dword ss:[ebp + 8]
mov ecx, dword ds:[edx + 0x28]
mov dword ds:[ebx], ecx
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x2c]
mov dword ds:[ebx + 4], edx
mov ecx, dword ss:[ebp + 8]
mov eax, dword ds:[ecx + 0x30]
mov dword ds:[ebx + 8], eax
mov edx, dword ss:[ebp + 8]
mov ecx, dword ds:[edx + 0x34]
mov dword ds:[ebx + 0xc], ecx
push ebx
push dword ss:[ebp - 4]
call fcn.004d94ec
add esp, 8
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x18]
xor dword ds:[ebx], edx
mov ecx, dword ss:[ebp + 8]
mov eax, dword ds:[ecx + 0x1c]
xor dword ds:[ebx + 4], eax
mov edx, dword ss:[ebp + 8]
mov ecx, dword ds:[edx + 0x20]
xor dword ds:[ebx + 8], ecx
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x24]
xor dword ds:[ebx + 0xc], edx
add ebx, edi
cmp edi, dword ss:[ebp + 0x10]
jae 0x4dae05
mov ecx, dword ds:[esi]
mov dword ds:[ebx], ecx
mov eax, dword ds:[esi + 4]
mov dword ds:[ebx + 4], eax
mov edx, dword ds:[esi + 8]
mov dword ds:[ebx + 8], edx
mov ecx, dword ds:[esi + 0xc]
mov dword ds:[ebx + 0xc], ecx
push ebx
push dword ss:[ebp - 4]
call fcn.004d94ec
add esp, 8
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x28]
xor dword ds:[ebx], edx
mov ecx, dword ss:[ebp + 8]
mov eax, dword ds:[ecx + 0x2c]
xor dword ds:[ebx + 4], eax
mov edx, dword ss:[ebp + 8]
mov ecx, dword ds:[edx + 0x30]
xor dword ds:[ebx + 8], ecx
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x34]
xor dword ds:[ebx + 0xc], edx
add esi, edi
add ebx, edi
sub dword ss:[ebp + 0x10], edi
cmp edi, dword ss:[ebp + 0x10]
jae 0x4dae72
mov ecx, dword ds:[esi]
mov dword ds:[ebx], ecx
mov eax, dword ds:[esi + 4]
mov dword ds:[ebx + 4], eax
mov edx, dword ds:[esi + 8]
mov dword ds:[ebx + 8], edx
mov ecx, dword ds:[esi + 0xc]
mov dword ds:[ebx + 0xc], ecx
push ebx
push dword ss:[ebp - 4]
call fcn.004d94ec
add esp, 8
mov eax, esi
sub eax, edi
mov edx, dword ds:[eax]
xor dword ds:[ebx], edx
mov ecx, esi
sub ecx, edi
mov eax, dword ds:[ecx + 4]
xor dword ds:[ebx + 4], eax
mov edx, esi
sub edx, edi
mov ecx, dword ds:[edx + 8]
xor dword ds:[ebx + 8], ecx
mov eax, esi
sub eax, edi
mov edx, dword ds:[eax + 0xc]
xor dword ds:[ebx + 0xc], edx
add esi, edi
add ebx, edi
sub dword ss:[ebp + 0x10], edi
cmp edi, dword ss:[ebp + 0x10]
jb 0x4dae0b
mov ecx, esi
sub ecx, edi
mov eax, dword ds:[ecx]
mov edx, dword ss:[ebp + 8]
mov dword ds:[edx + 0x18], eax
mov ecx, esi
sub ecx, edi
mov eax, dword ds:[ecx + 4]
mov edx, dword ss:[ebp + 8]
mov dword ds:[edx + 0x1c], eax
mov ecx, esi
sub ecx, edi
mov eax, dword ds:[ecx + 8]
mov edx, dword ss:[ebp + 8]
mov dword ds:[edx + 0x20], eax
mov ecx, esi
sub ecx, edi
mov eax, dword ds:[ecx + 0xc]
mov edx, dword ss:[ebp + 8]
mov dword ds:[edx + 0x24], eax
push dword ss:[ebp + 0x10]
push esi
mov ecx, dword ss:[ebp + 8]
add ecx, 0x28
push ecx
call fcn.004d86f0
add esp, 0xc
mov eax, dword ss:[ebp + 8]
mov edx, dword ds:[eax + 0x38]
and edx, 0xf0000000
add edx, dword ss:[ebp + 0x10]
mov ecx, dword ss:[ebp + 8]
mov dword ds:[ecx + 0x38], edx
mov eax, dword ss:[ebp + 0x18]
mov edx, dword ss:[ebp + 0x10]
sub dword ds:[eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret