Function at 0x4f0280
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x8c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 1
call fcn.004a72e0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jge 0x4f02dc
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005fff12
add esp, 0x60
ret
call fcn.004f0eb0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x4f02c8
push ebx
mov ebx, edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x4f0306
mov esi, 0x689ad8
xor eax, eax
jmp 0x4f0321
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
jne 0x4f0321
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f0314
mov ecx, dword [esp + 0x10]
sub eax, edx
push 0
push ebp
push eax
push esi
push ecx
call fcn.004f08f0
add esp, 0x14
test eax, eax
jne 0x4f0355
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004f0c40
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005fff12
add esp, 0x60
ret
call fcn.004f0eb0
mov ebp, eax
test ebp, ebp
jne 0x4f0382
mov edx, dword [esp + 0x10]
push edx
call fcn.004f0c40
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005fff12
add esp, 0x60
ret
test edi, edi
jne 0x4f03b5
push ebp
call fcn.004f0c40
mov eax, dword [esp + 0x14]
push eax
call fcn.004f0c40
add esp, 8
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005fff12
add esp, 0x60
ret
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp edi, eax
jle 0x4f03bf
mov edi, eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x14], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
push esi
push ebp
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
call fcn.004f0d70
add esp, 8
test eax, eax
je 0x4f04f3
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
push edx
push eax
push ebp
call fcn.004f0b20
add esp, 0xc
test eax, eax
je 0x4f04f3
push 4
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.004f0b20
add esp, 0xc
test eax, eax
je 0x4f04f3
push 0
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.004f0b40
add esp, 0xc
test eax, eax
je 0x4f04f3
push edi
lea eax, [esp + 0x30]
push eax
push ebx
call sub.MSVCR90.dll_memcpy
mov ecx, 1
add esp, 0xc
cmp dword [esp + 0x84], ecx
mov dword [esp + 0x20], ecx
jle 0x4f04d6
push esi
push ebp
call fcn.004f0d70
add esp, 8
test eax, eax
je 0x4f04f3
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.004f0b20
add esp, 0xc
test eax, eax
je 0x4f04f3
push 0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.004f0b40
add esp, 0xc
test eax, eax
je 0x4f04f3
test edi, edi
jle 0x4f04bf
lea ecx, [esp + 0x2c]
mov eax, ebx
sub ecx, ebx
mov esi, edi
mov edi, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x4f04b0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
jl 0x4f0467
mov ecx, 1
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], ecx
sub eax, edi
add ebx, edi
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4f03b1
jmp 0x4f0386
push ebp
call fcn.004f0c40
push esi
call fcn.004f0c40
mov ecx, dword [esp + 0x74]
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005fff12
add esp, 0x60
ret