Function at 0x4f4160
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x62b5cc]
test eax, eax
je 0x4f4178
call fcn.004f3e90
mov dword [0x62b5cc], 0
mov edx, dword [esp + 0xc]
push ebp
mov eax, edx
sub eax, 0x80
je 0x4f41b7
sub eax, 0x40
je 0x4f41a7
sub eax, 0x40
je 0x4f4197
mov eax, 1
pop ebp
ret
mov ebp, dword [esp + 8]
mov dword [ebp + 0x200], 0xe
jmp 0x4f41c5
mov ebp, dword [esp + 8]
mov dword [ebp + 0x200], 0xc
jmp 0x4f41c5
mov ebp, dword [esp + 8]
mov dword [ebp + 0x200], 0xa
mov ecx, edx
push ebx
sar ecx, 5
push esi
push edi
test ecx, ecx
mov eax, ebp
jle 0x4f4209
mov esi, dword [esp + 0x18]
mov edi, ebp
add esi, 2
mov ebp, ecx
xor ecx, ecx
xor ebx, ebx
mov ch, byte [esi - 2]
mov bl, byte [esi]
mov cl, byte [esi - 1]
add esi, 4
shl ecx, 8
or ecx, ebx
xor ebx, ebx
mov bl, byte [esi - 3]
add edi, 4
shl ecx, 8
or ecx, ebx
dec ebp
mov dword [edi - 4], ecx
jne 0x4f41de
mov ebp, dword [esp + 0x14]
mov ecx, edx
sub ecx, 0x80
je 0x4f43b6
sub ecx, 0x40
je 0x4f431b
sub ecx, 0x40
jne 0x4f4438
mov edi, 0x6402d8
mov esi, dword [eax + 0x1c]
add edi, 4
mov edx, esi
add eax, 0x20
shr edx, 0x10
and edx, 0xff
mov ecx, dword [edx*4 + 0x63dad8]
mov edx, esi
shr edx, 8
and edx, 0xff
shl ecx, 8
mov ebx, dword [edx*4 + 0x63dad8]
xor edx, edx
mov dl, byte [eax - 4]
xor ecx, ebx
shl ecx, 8
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, esi
shr edx, 0x18
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, dword [edi - 4]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [eax - 0x20]
xor ecx, ebx
xor ecx, edx
mov edx, dword [eax - 0x1c]
mov dword [eax], ecx
xor edx, ecx
mov ecx, dword [eax - 0x18]
mov dword [eax + 4], edx
xor ecx, edx
mov edx, dword [eax - 0x14]
xor edx, ecx
mov dword [eax + 8], ecx
mov ecx, edx
mov ebx, edx
shr ecx, 0x18
mov dword [eax + 0xc], edx
mov ecx, dword [ecx*4 + 0x63dad8]
shr ebx, 0x10
shr edx, 8
and ebx, 0xff
and edx, 0xff
shl ecx, 8
xor ecx, dword [ebx*4 + 0x63dad8]
mov ebx, dword [edx*4 + 0x63dad8]
xor edx, edx
mov dl, byte [eax + 0xc]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, dword [eax - 0x10]
shl ecx, 8
xor ecx, ebx
xor ecx, edx
mov edx, dword [eax - 0xc]
mov dword [eax + 0x10], ecx
xor edx, ecx
mov ecx, dword [eax - 8]
mov dword [eax + 0x14], edx
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, esi
mov dword [eax + 0x1c], ecx
cmp edi, 0x6402f4
jl 0x4f422e
jmp 0x4f4438
mov edi, 0x6402d8
mov esi, dword [eax + 0x14]
add edi, 4
mov edx, esi
mov ecx, esi
shr edx, 8
shr ecx, 0x10
and edx, 0xff
and ecx, 0xff
add eax, 0x18
mov ebx, dword [edx*4 + 0x63dad8]
mov ecx, dword [ecx*4 + 0x63dad8]
xor edx, edx
mov dl, byte [eax - 4]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, dword [edi - 4]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [eax - 0x18]
xor ecx, ebx
xor ecx, edx
mov edx, dword [eax - 0x14]
mov dword [eax], ecx
xor edx, ecx
mov ecx, dword [eax - 0x10]
mov dword [eax + 4], edx
xor ecx, edx
mov edx, dword [eax - 0xc]
mov dword [eax + 8], ecx
xor edx, ecx
mov ecx, dword [eax - 8]
mov dword [eax + 0xc], edx
xor ecx, edx
mov dword [eax + 0x10], ecx
xor ecx, esi
mov dword [eax + 0x14], ecx
cmp edi, 0x6402f8
jl 0x4f4320
jmp 0x4f4438
mov edi, 0x6402d8
mov esi, dword [eax + 0xc]
add edi, 4
mov edx, esi
mov ecx, esi
shr edx, 8
shr ecx, 0x10
and edx, 0xff
and ecx, 0xff
add eax, 0x10
mov ebx, dword [edx*4 + 0x63dad8]
mov ecx, dword [ecx*4 + 0x63dad8]
xor edx, edx
mov dl, byte [eax - 4]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, ebx
mov ebx, dword [edx*4 + 0x63dad8]
mov edx, dword [eax - 0x10]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [edi - 4]
xor ecx, edx
mov edx, dword [eax - 0xc]
xor ecx, ebx
mov dword [eax], ecx
xor ecx, edx
mov edx, dword [eax - 8]
mov dword [eax + 4], ecx
xor edx, ecx
xor esi, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
cmp edi, 0x640300
jl 0x4f43bb
mov ecx, dword [0x62b5d0]
test ecx, ecx
je 0x4f4492
xor ecx, ecx
mov edx, dword [ecx + 0x63dad8]
add ecx, 4
shl edx, 2
cmp ecx, 0x400
mov esi, dword [edx + 0x63eed8]
mov dword [ecx + 0x63ded4], esi
mov esi, dword [edx + 0x63f2d8]
mov dword [ecx + 0x63e2d4], esi
mov esi, dword [edx + 0x63f6d8]
mov edx, dword [edx + 0x63fad8]
mov dword [ecx + 0x63e6d4], esi
mov dword [ecx + 0x63ead4], edx
jl 0x4f4444
mov dword [0x62b5d0], 0
mov edx, dword [eax]
lea ecx, [ebp + 0x100]
add eax, 4
mov esi, 1
mov dword [ecx], edx
add ecx, 4
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
mov edx, dword [ebp + 0x200]
add ecx, 4
cmp edx, esi
jle 0x4f4609
mov edx, dword [eax - 0x20]
sub eax, 0x20
mov edi, edx
mov ebx, edx
shr edi, 0x18
shr ebx, 0x10
mov edi, dword [edi*4 + 0x63ded8]
and ebx, 0xff
shr edx, 8
xor edi, dword [ebx*4 + 0x63e2d8]
and edx, 0xff
add eax, 4
add ecx, 4
mov ebx, dword [edx*4 + 0x63e6d8]
xor edx, edx
mov dl, byte [eax - 4]
xor edi, ebx
add eax, 4
add ecx, 4
mov ebx, dword [edx*4 + 0x63ead8]
add eax, 4
xor edi, ebx
add eax, 4
mov dword [ecx - 8], edi
mov edx, dword [eax - 0xc]
mov edi, edx
mov ebx, edx
shr edi, 0x18
shr ebx, 0x10
mov edi, dword [edi*4 + 0x63ded8]
and ebx, 0xff
shr edx, 8
xor edi, dword [ebx*4 + 0x63e2d8]
and edx, 0xff
add ecx, 4
mov ebx, dword [edx*4 + 0x63e6d8]
xor edx, edx
mov dl, byte [eax - 0xc]
xor edi, ebx
add ecx, 4
xor edi, dword [edx*4 + 0x63ead8]
mov dword [ecx - 0xc], edi
mov edx, dword [eax - 8]
mov edi, edx
mov ebx, edx
shr edi, 0x18
shr ebx, 0x10
mov edi, dword [edi*4 + 0x63ded8]
and ebx, 0xff
shr edx, 8
xor edi, dword [ebx*4 + 0x63e2d8]
and edx, 0xff
mov ebx, dword [edx*4 + 0x63e6d8]
xor edx, edx
mov dl, byte [eax - 8]
xor edi, ebx
xor edi, dword [edx*4 + 0x63ead8]
mov dword [ecx - 8], edi
mov edx, dword [eax - 4]
mov edi, edx
mov ebx, edx
shr edi, 0x18
shr ebx, 0x10
mov edi, dword [edi*4 + 0x63ded8]
and ebx, 0xff
shr edx, 8
xor edi, dword [ebx*4 + 0x63e2d8]
and edx, 0xff
mov ebx, dword [edx*4 + 0x63e6d8]
xor edx, edx
mov dl, byte [eax - 4]
xor edi, ebx
mov ebx, dword [edx*4 + 0x63ead8]
xor edi, ebx
inc esi
mov dword [ecx - 4], edi
mov edx, dword [ebp + 0x200]
cmp esi, edx
jl 0x4f44d3
mov edx, dword [eax - 0x20]
sub eax, 0x20
add eax, 4
mov dword [ecx], edx
add ecx, 4
pop edi
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
mov edx, dword [eax]
pop esi
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
pop ebx
xor eax, eax
pop ebp
ret