Function at 0x4fa7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
add edx, esi
adc ecx, 0
xor eax, eax
mov edi, 0xffffffe0
cmp edi, edx
mov edi, 0xf
sbb edi, ecx
jb 0x4fae08
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x164], 0
mov edi, ebx
je 0x4fa8b8
lea edx, [edi + 0x50]
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x18], xmm0
lea ecx, [esp + 0x18]
call fcn.004fb680
movdqu xmm0, xmmword [esp + 0x18]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [edi + 0x40], xmm0
mov dword [edi + 0x164], 0
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x160]
test eax, eax
je 0x4fa99b
test esi, esi
je 0x4fadfd
nop word cs:[eax + eax]
movzx ecx, byte [edi + eax + 0x10]
xor cl, byte [edx]
inc edx
mov byte [ebx], cl
xor byte [edi + eax + 0x40], cl
inc ebx
lea ecx, [esi - 1]
inc eax
and eax, 0xf
je 0x4fa8ff
cmp esi, 1
mov esi, ecx
jne 0x4fa8e0
test eax, eax
jne 0x4fadfd
mov dword [esp + 8], edx
lea edx, [edi + 0x50]
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x18], xmm0
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004fb680
mov eax, esi
mov edx, dword [esp + 8]
movdqu xmm0, xmmword [esp + 0x18]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [edi + 0x40], xmm0
jmp 0x4fa99d
mov eax, esi
mov ecx, dword [edi + 0xc]
bswap ecx
cmp eax, 0xc00
mov dword [esp + 4], ecx
jb 0x4faad0
lea ecx, [edi + 0x50]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x14]
nop dword [eax]
mov dword [esp], eax
push edi
push dword [ebp + 0xc]
push 0xc0
push ebx
mov dword [esp + 0x18], edx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp + 4]
add eax, 0xc0
mov dword [esp + 4], eax
bswap eax
mov dword [edi + 0xc], eax
movdqu xmm0, xmmword [edi + 0x40]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x18], xmm0
mov edi, 8
nop dword [eax]
mov eax, dword [ebx + edi]
mov ecx, dword [ebx + edi + 4]
bswap ecx
xor dword [esp + 0x18], ecx
bswap eax
xor dword [esp + 0x1c], eax
mov eax, dword [ebx + edi - 8]
mov ecx, dword [ebx + edi - 4]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004fb680
add edi, 0x10
cmp edi, 0xc08
jne 0x4faa30
movdqu xmm0, xmmword [esp + 0x18]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
mov edi, dword [ebp + 8]
movdqu xmmword [edi + 0x40], xmm0
add ebx, 0xc00
mov edx, dword [esp + 8]
add edx, 0xc00
mov eax, dword [esp]
add eax, 0xfffff400
cmp eax, 0xbff
ja 0x4fa9c0
mov ecx, eax
and ecx, 0xff0
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
je 0x4fac39
mov dword [esp], eax
mov esi, eax
shr esi, 4
push edi
push dword [ebp + 0xc]
push esi
push ebx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp + 4]
add eax, esi
mov dword [esp + 4], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
add eax, ecx
mov dword [esp + 0x10], eax
lea esi, [edi + 0x50]
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm1, xmm1
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm0, xmm1
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
movdqu xmmword [esp + 0x18], xmm0
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + edi + 8]
mov ecx, dword [ebx + edi + 0xc]
bswap ecx
xor dword [esp + 0x18], ecx
bswap eax
xor dword [esp + 0x1c], eax
mov eax, dword [ebx + edi]
mov ecx, dword [ebx + edi + 4]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004fb680
mov ecx, dword [esp + 0x14]
add edi, 0x10
cmp ecx, edi
jne 0x4fab60
mov eax, dword [esp]
and eax, 0xf
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 0x18]
movdqa xmm2, xmm1
punpcklbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
mov edi, dword [ebp + 8]
movdqu xmmword [edi + 0x40], xmm0
lea esi, [ebx + ecx]
test eax, eax
je 0x4fac43
lea ecx, [edi + 0x10]
push dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
push ecx
push edi
mov dword [esp + 0xc], eax
call dword [edi + 0x158]
mov ecx, dword [esp + 0xc]
add esp, 0xc
mov eax, dword [esp + 4]
inc eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
cmp ecx, 8
mov dword [esp + 0x2c], esi
jae 0x4fac4a
mov edx, dword [esp + 0x10]
test cl, 1
jne 0x4fad1d
mov edx, ecx
cmp ecx, 1
je 0x4fadfa
jmp 0x4fad41
mov esi, ebx
mov dword [esp + 0x10], edx
test eax, eax
jne 0x4fabea
xor eax, eax
jmp 0x4fadfd
mov edx, dword [esp + 0x14]
add edx, ecx
lea ecx, [ebx + edx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp]
add edi, ecx
add edi, 0x40
mov dword [esp + 0x34], edi
add edx, dword [esp + 8]
cmp esi, edi
setb byte [esp + 4]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp edi, ecx
setb byte [esp + 0xf]
cmp esi, edx
setb byte [esp + 0xe]
mov esi, dword [esp + 0x10]
cmp esi, ecx
setb ch
cmp edi, edx
setb dl
cmp esi, dword [esp + 0x34]
setb dh
mov cl, byte [esp + 0xf]
test byte [esp + 4], cl
jne 0x4fad8e
and byte [esp + 0xe], ch
jne 0x4fad8e
mov ecx, dword [esp]
and dl, dh
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
jne 0x4fac20
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x4fada6
mov eax, ecx
and eax, 0xfffffff0
xor ecx, ecx
nop dword [eax]
movdqu xmm0, xmmword [edx + ecx]
movdqu xmm1, xmmword [edi + ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + ecx], xmm1
movdqu xmm0, xmmword [edi + ecx + 0x40]
pxor xmm0, xmm1
movdqu xmmword [edi + ecx + 0x40], xmm0
add ecx, 0x10
cmp eax, ecx
jne 0x4face0
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4fad99
mov eax, ecx
jmp 0x4fadfd
mov esi, edx
movzx edx, byte [edi + eax + 0x10]
xor dl, byte [esi + eax]
mov esi, dword [esp + 0x2c]
mov byte [esi + eax], dl
xor byte [edi + eax + 0x40], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
je 0x4fadfa
mov esi, dword [esp + 0x14]
add esi, eax
mov ecx, dword [esp + 8]
add ecx, esi
inc ecx
add esi, ebx
inc esi
add eax, edi
add eax, 0x41
xor edi, edi
nop dword [eax + eax]
movzx ebx, byte [eax + edi - 0x31]
xor bl, byte [ecx + edi - 1]
mov byte [esi + edi - 1], bl
xor byte [eax + edi - 1], bl
movzx ebx, byte [eax + edi - 0x30]
xor bl, byte [ecx + edi]
mov byte [esi + edi], bl
xor byte [eax + edi], bl
add edi, 2
cmp edx, edi
jne 0x4fad60
mov eax, dword [esp]
mov edi, dword [ebp + 8]
jmp 0x4fadfd
mov ecx, dword [esp]
mov edi, dword [ebp + 8]
jmp 0x4fac1c
test cl, 8
jne 0x4fada6
and ecx, 0xf
jmp 0x4fac20
mov esi, edx
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
nop word [eax + eax]
movq xmm0, qword [esi + edx]
movq xmm1, qword [edi + edx + 0x10]
pxor xmm1, xmm0
movq qword [ecx + edx], xmm1
movq xmm0, qword [edi + edx + 0x40]
pxor xmm0, xmm1
movq qword [edi + edx + 0x40], xmm0
add edx, 8
cmp eax, edx
jne 0x4fadc0
cmp dword [esp], eax
mov edx, esi
mov ecx, dword [esp + 4]
jne 0x4fac20
mov eax, dword [esp]
mov dword [edi + 0x160], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret