Function at 0x4dc694
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword ss:[ebp + 0x14]
mov esi, dword ss:[ebp + 0xc]
mov ebx, dword ss:[ebp + 8]
lea eax, ds:[ebx + 0x3c]
mov dword ss:[ebp - 4], eax
mov dword ss:[ebp - 8], 0x10
mov edx, dword ds:[ebx + 0x38]
mov dword ss:[ebp - 0xc], edx
mov ecx, dword ss:[ebp - 0xc]
add ecx, dword ss:[ebp + 0x10]
mov eax, dword ss:[ebp + 0x18]
mov dword ds:[eax], ecx
mov edx, dword ss:[ebp - 0xc]
add edx, dword ss:[ebp + 0x10]
cmp edx, dword ss:[ebp - 8]
ja 0x4dc70d
push dword ss:[ebp + 0x10]
push esi
mov ecx, dword ss:[ebp - 0xc]
add ecx, ebx
add ecx, 0x28
push ecx
call fcn.004d86f0
add esp, 0xc
mov eax, dword ss:[ebp + 0x10]
add dword ds:[ebx + 0x38], eax
mov edx, dword ss:[ebp + 0x18]
xor ecx, ecx
mov dword ds:[edx], ecx
xor eax, eax
jmp 0x4dc873
cmp esi, edi
jne 0x4dc71b
mov eax, 0x1001
jmp 0x4dc873
mov edx, dword ss:[ebp - 0xc]
add edx, dword ss:[ebp + 0x10]
mov ecx, dword ss:[ebp + 0x18]
mov dword ds:[ecx], edx
mov eax, dword ss:[ebp - 8]
sub eax, dword ss:[ebp - 0xc]
push eax
push esi
mov edx, dword ss:[ebp - 0xc]
add edx, ebx
add edx, 0x28
push edx
call fcn.004d86f0
add esp, 0xc
mov ecx, dword ss:[ebp - 8]
sub ecx, dword ss:[ebp - 0xc]
add esi, ecx
mov eax, dword ss:[ebp - 8]
sub eax, dword ss:[ebp - 0xc]
sub dword ss:[ebp + 0x10], eax
lea edx, ds:[ebx + 0x18]
push edx
push dword ss:[ebp - 4]
call fcn.004daef8
add esp, 8
mov ecx, dword ds:[ebx + 0x18]
xor ecx, dword ds:[ebx + 0x28]
mov dword ds:[edi], ecx
mov eax, dword ds:[ebx + 0x1c]
xor eax, dword ds:[ebx + 0x2c]
mov dword ds:[edi + 4], eax
mov edx, dword ds:[ebx + 0x20]
xor edx, dword ds:[ebx + 0x30]
mov dword ds:[edi + 8], edx
mov ecx, dword ds:[ebx + 0x24]
xor ecx, dword ds:[ebx + 0x34]
mov dword ds:[edi + 0xc], ecx
mov eax, dword ds:[ebx + 0x28]
mov dword ds:[ebx + 0x18], eax
mov edx, dword ds:[ebx + 0x2c]
mov dword ds:[ebx + 0x1c], edx
mov ecx, dword ds:[ebx + 0x30]
mov dword ds:[ebx + 0x20], ecx
mov eax, dword ds:[ebx + 0x34]
mov dword ds:[ebx + 0x24], eax
add edi, dword ss:[ebp - 8]
mov edx, dword ss:[ebp + 0x10]
cmp edx, dword ss:[ebp - 8]
jbe 0x4dc842
lea ecx, ds:[ebx + 0x18]
push ecx
push dword ss:[ebp - 4]
call fcn.004daef8
add esp, 8
mov eax, dword ds:[ebx + 0x18]
xor eax, dword ds:[esi]
mov dword ds:[edi], eax
mov edx, dword ds:[ebx + 0x1c]
xor edx, dword ds:[esi + 4]
mov dword ds:[edi + 4], edx
mov ecx, dword ds:[ebx + 0x20]
xor ecx, dword ds:[esi + 8]
mov dword ds:[edi + 8], ecx
mov eax, dword ds:[ebx + 0x24]
xor eax, dword ds:[esi + 0xc]
mov dword ds:[edi + 0xc], eax
mov edx, dword ds:[esi]
mov dword ds:[ebx + 0x18], edx
mov ecx, dword ds:[esi + 4]
mov dword ds:[ebx + 0x1c], ecx
mov eax, dword ds:[esi + 8]
mov dword ds:[ebx + 0x20], eax
mov edx, dword ds:[esi + 0xc]
mov dword ds:[ebx + 0x24], edx
add esi, dword ss:[ebp - 8]
add edi, dword ss:[ebp - 8]
mov ecx, dword ss:[ebp - 8]
sub dword ss:[ebp + 0x10], ecx
mov eax, dword ss:[ebp + 0x10]
cmp eax, dword ss:[ebp - 8]
ja 0x4dc7ca
push dword ss:[ebp + 0x10]
push esi
lea edx, ds:[ebx + 0x28]
push edx
call fcn.004d86f0
add esp, 0xc
mov ecx, dword ds:[ebx + 0x38]
and ecx, 0xf0000000
add ecx, dword ss:[ebp + 0x10]
mov dword ds:[ebx + 0x38], ecx
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
mov esp, ebp
pop ebp
ret