Function at 0x4d0869
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], ebx
lea esi, [ebx*4 + 0x10]
je 0x4d096a
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
test cl, 1
mov dword [ebp - 0x20], ecx
je 0x4d096a
mov edx, dword [0x4dfb60]
test edx, edx
je 0x4d092b
lea ecx, [eax - 1]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 8], 0x4dfb60
jmp 0x4d08c9
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 0xffffffff
je 0x4d090d
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x14]
lea edx, [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor ecx, ecx
xor ecx, eax
xor eax, eax
push eax
push dword [ebp - 8]
xor ebx, ebx
xor edx, ebx
push edx
push ecx
call fcn.004d76d0
sub dword [ebp - 0xc], 4
dec dword [ebp - 0x10]
jne 0x4d08e5
mov ebx, dword [ebp - 0x18]
push eax
push dword [ebp - 8]
call fcn.004ced6a
cmp eax, 1
jne 0x4d096a
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4d08c6
test byte [ebp - 0x20], 2
jne 0x4d094c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
shr eax, 5
mov eax, dword [edx + eax*4]
and ecx, 0x1f
shr eax, cl
test al, 1
je 0x4d0931
mov eax, esi
shl eax, 2
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x4d0974
mov eax, 0xfffff447
jmp 0x4d0a8b
mov eax, 0xfffff445
jmp 0x4d0a8b
push ebx
push eax
call fcn.004cefd7
mov dword [ebp - 0x14], eax
push ebx
add eax, esi
push eax
call fcn.004cefd7
mov dword [ebp - 0x10], eax
push ebx
add eax, esi
push eax
call fcn.004cefd7
push dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebx + esi]
push eax
call fcn.004cefd7
push dword [0x4dfb5c]
mov dword [ebp + 8], eax
push edi
push eax
call fcn.004cf52a
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004cf2a7
push edi
call fcn.004d04e5
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
jb 0x4d0a7d
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
push esi
call fcn.004cf0fc
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0xc]
mov esi, dword [edi + 0xc]
shl ecx, 2
lea eax, [ecx + eax - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
xor edx, edx
div dword [ecx + esi - 4]
mov eax, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
mov dword [eax], edx
call fcn.004d076e
push dword [0x4dfb5c]
push ebx
call fcn.004cf060
test eax, eax
je 0x4d0a6e
push dword [ebp + 8]
push ebx
call fcn.004cf060
test eax, eax
je 0x4d0a6e
xor esi, esi
inc esi
cmp dword [ebp - 4], esi
jbe 0x4d0a61
push dword [ebp + 8]
push ebx
call fcn.004cf060
test eax, eax
je 0x4d0a61
push edi
push ebx
push ebx
push ebx
call fcn.004cfa04
push dword [0x4dfb5c]
push ebx
call fcn.004cf060
test eax, eax
je 0x4d0a92
inc esi
cmp esi, dword [ebp - 4]
jb 0x4d0a35
push dword [ebp + 8]
push ebx
call fcn.004cf060
test eax, eax
jne 0x4d0a92
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jbe 0x4d09d7
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, 0xfffff445
jmp 0x4d0a7f