Function at 0x4f8250
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.00574bf0
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x174]
mov dword [esp + 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x4f857e
jb 0x4f828c
cmp eax, 0xffffffe0
ja 0x4f857e
cmp dword [edi + 0x16c], 0
push ebp
mov ebp, dword [edi + 0x168]
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
push esi
mov dword [edi + 0x38], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
je 0x4f830b
test ebx, ebx
jne 0x4f82cf
lea eax, [edi + 0x60]
push eax
push ecx
call fcn.004f8dc0
add esp, 8
mov dword [edi + 0x16c], ebx
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
lea esi, [edi + 0x178]
mov ebp, 0x10
mov dword [esp + 0x18], ebp
movups xmmword [esi], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x16c], 0
jmp 0x4f8315
lea esi, [edi + 0x178]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [edi + 0xc]
mov edx, ebp
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x28], esi
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
or ecx, eax
and edx, 0xf
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
je 0x4f83c6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], esi
nop dword [eax + eax]
test ebx, ebx
je 0x4f8399
mov al, byte [edx + edi + 0x10]
dec ebx
xor al, byte [esi]
inc edx
lea esi, [edi + 0x178]
mov byte [ecx], al
mov dword [esp + 0x18], esi
inc ecx
mov esi, dword [esp + 0x10]
mov byte [edi + ebp + 0x178], al
inc esi
inc ebp
mov dword [esp + 0x3c], ecx
and edx, 0xf
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], edx
jne 0x4f8360
jmp 0x4f83a9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
test edx, edx
jne 0x4f856e
push ebp
push dword [esp + 0x1c]
lea ecx, [edi + 0x60]
lea eax, [edi + 0x40]
push ecx
push eax
call fcn.004f8b90
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x4f83d6
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], esi
lea ecx, [edi + 0x60]
cmp ebx, 0x10
jb 0x4f83fd
test ebp, ebp
je 0x4f83fd
push ebp
lea eax, [edi + 0x178]
push eax
push ecx
push dword [esp + 0x28]
call fcn.004f8b90
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x40]
cmp ebx, 0xc00
jb 0x4f8496
mov ebp, dword [esp + 0x3c]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
nop
push edi
push dword [esp + 0x24]
push 0xc0
push ebp
push esi
call ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xc0
mov eax, ecx
mov dword [esp + 0x28], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
push 0xc00
mov byte [edi + 0xe], al
lea eax, [edi + 0x60]
push ebp
push eax
push dword [esp + 0x3c]
mov byte [edi + 0xf], cl
call fcn.004f8b90
mov ecx, dword [esp + 0x64]
add esp, 0x24
add ebp, 0xc00
add esi, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x10], 1
jne 0x4f8420
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x4f8504
push edi
push dword [esp + 0x24]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x48]
push dword [esp + 0x20]
call ecx
mov ecx, dword [esp + 0x28]
add ecx, esi
mov esi, dword [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x28], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x2c]
add esi, eax
push eax
push dword [esp + 0x54]
sub ebx, eax
mov byte [edi + 0xf], cl
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x3c]
call fcn.004f8b90
mov eax, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x3c], eax
test ebx, ebx
je 0x4f856e
push dword [esp + 0x20]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x24]
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
add edi, 0x10
mov eax, dword [esp + 0x3c]
lea ecx, [edx + eax]
add edx, edi
mov edi, dword [esp + 0x28]
sub esi, eax
mov al, byte [esi + ecx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov byte [edi + ebp], al
inc ebp
sub ebx, 1
jne 0x4f8552
mov edi, dword [esp + 0x30]
pop esi
mov dword [edi + 0x168], ebp
xor eax, eax
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret