Function at 0x4fc080
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.005650a0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc8]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x18], ecx
xor ecx, ecx
xor ebx, ebx
push edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], ecx
cmp eax, ecx
jne 0x4fc10c
call fcn.004a4ff0
mov dword [esp + 0x18], eax
xor ecx, ecx
cmp esi, ecx
jne 0x4fc114
mov dword [esp + 0x24], eax
push eax
call fcn.004d36b0
add esp, 4
cmp dword [esp + 0xc8], ebx
mov esi, eax
jle 0x4fc3ff
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4fc3ff
cmp ebp, eax
jl 0x4fc3c5
lea eax, [esi + esi + 2]
cmp ebp, eax
jl 0x4fc3c5
mov ebx, ebp
push 0x9b
sub ebx, esi
dec ebx
push 0x779020
push ebx
call fcn.004a26d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4fc189
push 0x9d
push 0x779020
push 0x41
push 0xa1
push 4
call fcn.0049ca60
add esp, 0x14
jmp 0x4fc1cf
cmp dword [esp + 0x1c], ebp
je 0x4fc22e
push 0xa2
push 0x779020
push ebp
call fcn.004a26d0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x4fc208
push 0xa5
push 0x779020
push 0x41
push 0xa1
push 4
call fcn.0049ca60
add esp, 0x14
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4fc1e7
push ebx
push esi
call fcn.004b3880
push esi
call fcn.004a28d0
add esp, 0xc
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4fc1ff
push ebp
push esi
call fcn.004b3880
push esi
call fcn.004a28d0
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x4fc402
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebp
call fcn.00563860
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push eax
sub edx, eax
add edx, ebp
push edi
push edx
call fcn.005645b0
add esp, 0x18
mov edi, ebp
movzx eax, byte [edi]
mov ecx, dword [esp + 0x24]
lea ebp, [eax - 1]
not eax
shr eax, 0x1f
push ecx
shr ebp, 0x1f
and ebp, eax
lea eax, [edi + 1]
push ebx
lea edi, [edi + esi + 1]
push edi
lea edx, [esp + 0x48]
push esi
push edx
neg ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], edi
call fcn.004fbcf0
add esp, 0x14
test eax, eax
jne 0x4fc1cb
xor edi, edi
test esi, esi
jle 0x4fc28e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
sub ecx, eax
lea esp, [esp]
lea eax, [esp + edi + 0x3c]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc edi
cmp edi, esi
jl 0x4fc280
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
push ebx
push edx
call fcn.004fbcf0
add esp, 0x14
test eax, eax
jne 0x4fc1cb
test ebx, ebx
jle 0x4fc2cb
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
sub edi, eax
mov ecx, ebx
nop
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x4fc2c0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xdc]
push 0
push eax
mov eax, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.004ab960
add esp, 0x18
test eax, eax
je 0x4fc1cb
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x80]
push ecx
push edx
call fcn.004b1d40
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ecx
and ebp, ecx
add esp, 0xc
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x18], ebp
jge 0x4fc384
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
movzx ecx, byte [esi + edx]
mov eax, ecx
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, edi
not eax
neg edx
and eax, edx
mov ebp, eax
and eax, esi
not ebp
and ebp, dword [esp + 0x28]
or edi, edx
or ebp, eax
lea eax, [ecx - 1]
shr eax, 0x1f
not ecx
shr ecx, 0x1f
and eax, ecx
neg eax
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
or eax, edi
and ebp, eax
inc esi
cmp esi, ebx
mov dword [esp + 0x18], ebp
jl 0x4fc330
test ebp, edi
je 0x4fc3c1
mov ecx, dword [esp + 0x28]
inc ecx
mov eax, ebx
sub eax, ecx
cmp dword [esp + 0xc8], eax
mov dword [esp + 0x20], eax
jge 0x4fc3e5
push 0xea
push 0x779020
push 0x6d
push 0xa1
push 4
call fcn.0049ca60
add esp, 0x14
mov dword [esp + 0x20], 0xffffffff
mov ebp, dword [esp + 0x14]
push 0xf7
push 0x779020
push 0x79
push 0xa1
push 4
call fcn.0049ca60
add esp, 0x14
jmp 0x4fc1cf
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
add ecx, edx
push ecx
push eax
call fcn.005645b0
add esp, 0xc
jmp 0x4fc1cb
or eax, 0xffffffff
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0xb0
ret