Function at 0x4f9f50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.0059eec0
push ebx
mov ebx, dword [esp + 0x28]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x38]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x10], eax
mov eax, edi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x4fa269
jb 0x4f9f96
cmp eax, 0xffffffe0
ja 0x4fa269
cmp dword [ebx + 0x16c], 0
mov edx, dword [ebx + 0x168]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
push ebp
push esi
mov dword [ebx + 0x38], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
je 0x4fa1a9
test edi, edi
jne 0x4f9fe0
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x160]
push ecx
call eax
add esp, 8
mov dword [ebx + 0x16c], edi
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x20
ret
movups xmm0, xmmword [ecx]
lea eax, [ebx + 0x178]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [esp + 0x14], edx
mov dword [ebx + 0x16c], 0
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
cmp edi, 0x10
jb 0x4fa061
test edx, edx
je 0x4fa061
push edx
push dword [esp + 0x24]
lea eax, [ebx + 0x60]
push eax
push ecx
call dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x14], 0
mov edx, ecx
cmp edi, 0xc00
jb 0x4fa0d8
mov eax, 0xaaaaaaab
mov dword [esp + 0x20], ecx
mul edi
shr edx, 0xb
mov dword [esp + 0x24], edx
nop dword [eax]
push 0xc00
push ebp
lea eax, [ebx + 0x60]
push eax
push ecx
call dword [esp + 0x28]
push ebx
push dword [esp + 0x3c]
push 0xc0
push esi
push ebp
call dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
add esp, 0x24
add ecx, 0xc0
add esi, 0xc00
mov dword [esp + 0x40], ecx
add ebp, 0xc00
bswap ecx
sub edi, 0xc00
mov dword [ebx + 0xc], ecx
sub dword [esp + 0x24], 1
mov ecx, dword [esp + 0x20]
jne 0x4fa080
mov dword [esp + 0x1c], esi
mov edx, ecx
mov eax, edi
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x4fa122
push eax
mov esi, eax
lea eax, [ebx + 0x60]
push ebp
push eax
push edx
shr esi, 4
call dword [esp + 0x28]
push ebx
push dword [esp + 0x3c]
push esi
push dword [esp + 0x38]
push ebp
call dword [esp + 0x68]
mov eax, dword [esp + 0x64]
add esp, 0x24
add eax, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
add esi, eax
add ebp, eax
sub edi, eax
test edi, edi
je 0x4fa195
push dword [esp + 0x28]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
inc eax
bswap eax
mov dword [ebx + 0xc], eax
sub ebp, esi
mov eax, dword [esp + 0x10]
lea edx, [eax + esi]
add eax, 0x10
add eax, ebx
mov dword [esp + 0x2c], eax
lea eax, [ecx + 0x178]
add eax, ebx
mov ebx, dword [esp + 0x2c]
add ecx, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
mov cl, byte [edx + ebp]
lea ebx, [ebx + 1]
mov byte [eax], cl
lea edx, [edx + 1]
mov al, byte [ebx - 1]
xor al, cl
mov byte [edx - 1], al
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
sub edi, 1
jne 0x4fa170
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
mov dword [ebx + 0x168], eax
xor eax, eax
pop edi
pop ebx
add esp, 0x20
ret
lea eax, [ebx + 0x178]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [esp + 0x40], eax
mov eax, edx
and eax, 0xf
mov dword [esp + 0x10], eax
je 0x4fa02f
mov esi, dword [esp + 0x3c]
lea ecx, [ebx + 0x178]
mov ebp, dword [esp + 0x38]
add ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
je 0x4fa259
mov ebx, dword [esp + 0x14]
inc edx
mov cl, byte [ebp]
dec edi
inc dword [esp + 0x14]
inc ebp
mov byte [ebx], cl
mov ebx, dword [esp + 0x34]
mov al, byte [eax + ebx + 0x10]
xor al, cl
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], esi
and eax, 0xf
mov dword [esp + 0x10], eax
jne 0x4fa1e3
push edx
lea edx, [ebx + 0x178]
lea eax, [ebx + 0x178]
push edx
lea ecx, [ebx + 0x60]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x40]
push ecx
push eax
mov dword [esp + 0x34], eax
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x40]
xor edx, edx
mov dword [esp + 0x10], ecx
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], eax
jmp 0x4fa03b
pop esi
pop ebp
pop edi
mov dword [ebx + 0x168], edx
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret