Function at 0x4bf81a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push edi
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.msvcrt.dll_time]
pop ecx
call dword [sym.imp.msvcrt.dll_clock]
mov esi, dword [sym.imp.msvcrt.dll_rand]
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
call esi
push 0x80
mov dword [ebp - 0x40], eax
push 0x4df644
lea eax, [ebp - 0xfc]
push eax
call fcn.004c58e3
mov eax, dword [ebp + 0xc]
mov esi, eax
shr esi, 3
mov ecx, esi
shl ecx, 3
sub eax, ecx
mov edi, ebx
je 0x4bf88a
inc esi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
push 0x10
cdq
pop ecx
idiv ecx
xor edi, edi
mov ecx, eax
shl ecx, 4
sub esi, ecx
test eax, eax
mov dword [ebp - 0x30], esi
jle 0x4bf947
mov ebx, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
sub ebx, edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
xor ecx, ecx
lea eax, [ebp + ecx - 0x14]
mov dl, byte [ebx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x10
jl 0x4bf8e4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x10
jl 0x4bf90b
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
mov edi, dword [ebp - 0x2c]
add dword [ebp - 0x2c], 0x10
dec dword [ebp - 0x38]
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4bf8cc
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0
je 0x4bf9d1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x14]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x10
jl 0x4bf971
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x10
jl 0x4bf998
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0xfc]
push eax
call fcn.004c6822
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr ecx, 2
add edi, ebx
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push 0x10
sub ecx, eax
pop esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4bf9dc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.004a9585
leave
ret 0xc