Function at 0x4fa000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov al, byte [esi]
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
mov byte [ebp - 1], al
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test al, 0x40
jne 0x4fa037
push ebx
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov al, byte [ebp - 1]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, al
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x24], edx
cmp edx, 0xf
jae 0x4fa063
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4fa050
movzx eax, byte [esi + 0xf]
mov edi, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4fa07e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4fa0ab
ja 0x4fa09f
cmp dword [esi + 0x20], 0
jbe 0x4fa0ab
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
shr ecx, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4fa0f8
lea eax, [esi + 0x10]
push eax
push esi
push ebx
mov ebx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
push ebx
call dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, dword [ebp + 0x10]
shl eax, 4
add ebx, eax
add ecx, eax
sub edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], edi
je 0x4fa218
shr eax, 4
push eax
push esi
call fcn.004fa370
add esp, 8
jmp 0x4fa104
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x4fa218
xor ecx, ecx
test edi, edi
je 0x4fa11e
mov al, byte [ecx + ebx]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edi
jb 0x4fa112
push dword [ebp - 0xc]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
push esi
call dword [ebp - 0x10]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x4fa218
mov ecx, dword [ebp - 8]
cmp edi, 0x20
jb 0x4fa1f3
lea eax, [ebp + edi - 0x35]
cmp ecx, eax
ja 0x4fa169
lea eax, [ebp - 0x34]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
add eax, edi
cmp eax, dword [ebp - 8]
jae 0x4fa1f3
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x4fa17b
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x4fa1f3
mov eax, edi
lea esi, [ecx + 0x10]
and eax, 0xffffffe0
lea edi, [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x18], eax
mov eax, ecx
sub eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x20], eax
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [ebp + edx - 0x34]
lea eax, [ebx + edx]
movups xmm1, xmmword [ebp + eax - 0x34]
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 0x20]
add eax, edx
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 0x24]
add edx, 0x20
movups xmmword [ebp + eax - 0x34], xmm1
mov eax, dword [ebp - 0x20]
movups xmm1, xmmword [eax + esi - 0x20]
pxor xmm1, xmm0
movups xmmword [esi - 0x20], xmm1
cmp edx, edi
jb 0x4fa1b0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
cmp edx, edi
jae 0x4fa218
lea eax, [ebp - 0x34]
sub ebx, eax
sub ecx, eax
mov dword [ebp - 8], ecx
mov esi, ecx
lea ecx, [ebp - 0x34]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, edi
jb 0x4fa203
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jae 0x4fa23a
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
push esi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x30]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x2c]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret