Function at 0x4dfa2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4dfa35
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x4dfd67
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 0
mov eax, dword [ebp + 0x10]
call fcn.004c8aa4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x4dfd3e
shr dword [ebp - 0x38], 3
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, edi
mov eax, esi
call fcn.004dd59c
mov eax, dword [ebp - 0x38]
add eax, eax
push eax
mov eax, dword [ebp - 0x44]
pop edx
sub eax, edx
sub eax, 2
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
jle 0x4dfab8
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4dfd3e
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, edi
mov eax, esi
call fcn.004dd59c
mov ebx, dword [ebp - 0x1c]
jmp 0x4dfb2f
inc ebx
dec dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0
jle 0x4dfb3a
cmp byte [ebx], 0
je 0x4dfb2b
mov eax, dword [ebp - 0x38]
add eax, eax
add eax, 2
cmp eax, dword [ebp - 0x44]
jg 0x4dfd3e
mov eax, dword [ebp - 0x44]
dec eax
shr eax, 2
inc eax
add eax, eax
add eax, eax
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, edi
mov eax, esi
call fcn.004df2b0
mov ebx, dword [ebp - 4]
jmp 0x4dfb96
inc ebx
dec dword [ebp - 0x3c]
cmp dword [ebp - 0x3c], 0
jle 0x4dfba1
cmp byte [ebx], 0
je 0x4dfb92
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x44]
jg 0x4dfd3e
push 0
mov ecx, dword [ebp + 0x10]
mov dl, 1
mov eax, dword [0x4fa774]
call fcn.004fa8a0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x40]
call fcn.004faaf0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x40]
call fcn.004faaf8
lea eax, [ebp - 0x40]
call fcn.0040f6c4
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [ebp - 0x38]
call fcn.004030c8
mov eax, dword [ebp - 0x38]
add ebx, eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x38]
dec eax
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00405f30
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004030c8
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405f30
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
call fcn.004deff8
mov edx, dword [ebp - 0x38]
dec edx
test edx, edx
jl 0x4dfc79
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx + eax]
mov ebx, dword [ebp - 8]
xor byte [ebx + eax], cl
inc eax
dec edx
jne 0x4dfc68
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405f30
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
call fcn.004deff8
mov eax, dword [ebp - 0xc]
call fcn.00405f30
mov edx, eax
dec edx
test edx, edx
jl 0x4dfcb9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + eax]
mov ebx, dword [ebp - 0xc]
xor byte [ebx + eax], cl
inc eax
dec edx
jne 0x4dfca8
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x4c5894]
call fcn.004060ec
add esp, 4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
call fcn.004030c8
lea eax, [ebp - 0x28]
call fcn.00405140
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
call fcn.004090c4
test al, al
je 0x4dfd3e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x38]
lea ebx, [eax + edx]
mov eax, dword [ebp - 0xc]
call fcn.00405f30
sub eax, dword [ebp - 0x38]
jmp 0x4dfd12
inc ebx
dec eax
test eax, eax
jle 0x4dfd1b
cmp byte [ebx], 0
je 0x4dfd10
test eax, eax
je 0x4dfd3e
cmp byte [ebx], 1
jne 0x4dfd3e
inc ebx
dec eax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004030c8
mov byte [ebp - 0x31], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfd6e
lea eax, [ebp - 0x28]
call fcn.00404c40
lea eax, [ebp - 0x24]
mov edx, dword [0x4c5894]
mov ecx, 9
call fcn.00405824
ret