Function at 0x4fae10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
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 0x4fb428
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x164], 0
mov edx, ebx
je 0x4faeee
mov eax, dword [ebp + 8]
lea edx, [eax + 0x50]
movdqu xmm0, xmmword [eax + 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
mov edx, dword [ebp + 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 [edx + 0x40], xmm0
mov dword [edx + 0x164], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx + 0x160]
test eax, eax
je 0x4fafda
test esi, esi
je 0x4fb41d
nop
movzx ecx, byte [ebx]
inc ebx
mov edx, dword [ebp + 8]
movzx edx, byte [edx + eax + 0x10]
xor dl, cl
mov edi, dword [esp + 0xc]
mov byte [edi], dl
mov edx, dword [ebp + 8]
xor byte [edx + eax + 0x40], cl
inc edi
mov dword [esp + 0xc], edi
lea ecx, [esi - 1]
inc eax
and eax, 0xf
je 0x4faf40
cmp esi, 1
mov esi, ecx
jne 0x4faf10
test eax, eax
jne 0x4fb41d
mov eax, dword [ebp + 8]
lea edx, [eax + 0x50]
movdqu xmm0, xmmword [eax + 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 edx, dword [ebp + 8]
mov ecx, esi
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 [edx + 0x40], xmm0
jmp 0x4fafdc
mov ecx, esi
mov eax, dword [edx + 0xc]
bswap eax
mov dword [esp + 8], eax
cmp ecx, 0xc00
jb 0x4fb120
lea eax, [edx + 0x50]
mov dword [esp + 0x10], eax
pxor xmm2, xmm2
nop dword [eax]
mov dword [esp + 4], ecx
movdqu xmm0, xmmword [edx + 0x40]
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 edi, 8
mov esi, dword [esp + 0x10]
nop word cs:[eax + 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 0x4fb050
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 esi, dword [ebp + 8]
movdqu xmmword [esi + 0x40], xmm0
push esi
push dword [ebp + 0xc]
push 0xc0
mov edi, dword [esp + 0x18]
push edi
push ebx
call dword [ebp + 0x1c]
pxor xmm2, xmm2
mov edx, esi
add esp, 0x14
mov eax, dword [esp + 8]
add eax, 0xc0
mov dword [esp + 8], eax
bswap eax
mov dword [esi + 0xc], eax
add edi, 0xc00
mov dword [esp + 0xc], edi
add ebx, 0xc00
mov ecx, dword [esp + 4]
add ecx, 0xfffff400
cmp ecx, 0xbff
ja 0x4fb000
mov eax, ecx
and eax, 0xff0
mov dword [esp + 0x10], eax
je 0x4fb28c
mov dword [esp + 4], ecx
lea esi, [edx + 0x50]
movdqu xmm0, xmmword [edx + 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
add edi, 0x10
cmp dword [esp + 0x10], edi
jne 0x4fb180
mov esi, dword [esp + 4]
shr esi, 4
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
push edi
push dword [ebp + 0xc]
push esi
mov edi, dword [esp + 0x18]
push edi
push ebx
call dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 0x14
mov eax, dword [esp + 8]
add eax, esi
mov dword [esp + 8], eax
bswap eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x10]
lea edx, [edi + eax]
lea esi, [ebx + eax]
and ecx, 0xf
test ecx, ecx
je 0x4fb296
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov edi, dword [ebp + 8]
lea esi, [edi + 0x10]
push dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [edi + 0x158]
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov eax, dword [esp + 8]
inc eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
cmp ecx, 8
jae 0x4fb29d
mov edi, dword [esp + 0x28]
test cl, 1
jne 0x4fb3a1
mov edx, ecx
cmp ecx, 1
jne 0x4fb3c8
jmp 0x4fb416
mov edx, dword [esp + 0xc]
mov esi, ebx
test ecx, ecx
jne 0x4fb23a
xor eax, eax
jmp 0x4fb41a
lea edx, [ecx + edi]
add edx, 0x40
mov edi, dword [esp + 0x10]
add ecx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
mov dword [esp + 0x30], edi
add ecx, ebx
cmp esi, edi
setb byte [esp + 8]
mov edi, dword [esp + 0x28]
cmp edi, edx
setb byte [esp + 0x17]
cmp esi, ecx
setb byte [esp + 0x16]
mov esi, dword [esp + 0x2c]
cmp esi, edx
setb byte [esp + 0x15]
cmp edi, ecx
setb dl
cmp esi, dword [esp + 0x30]
setb dh
movzx ecx, byte [esp + 0x17]
test byte [esp + 8], cl
jne 0x4fb430
movzx ecx, byte [esp + 0x15]
and byte [esp + 0x16], cl
jne 0x4fb430
mov ecx, dword [esp + 4]
and dl, dh
jne 0x4fb273
xor eax, eax
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jb 0x4fb442
mov eax, ecx
and eax, 0xffffffe0
mov esi, dword [esp + 0x10]
lea ecx, [ebx + esi]
add ecx, 0x10
mov edx, dword [esp + 0xc]
add edx, esi
add edx, 0x10
xor esi, esi
mov edi, dword [ebp + 8]
nop dword [eax + eax]
movdqu xmm0, xmmword [ecx + esi - 0x10]
movdqu xmm1, xmmword [ecx + esi]
movdqu xmm2, xmmword [edi + esi + 0x40]
movdqu xmm3, xmmword [edi + esi + 0x50]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi + esi + 0x40], xmm2
movdqu xmmword [edi + esi + 0x50], xmm3
movdqu xmm2, xmmword [edi + esi + 0x10]
movdqu xmm3, xmmword [edi + esi + 0x20]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edx + esi - 0x10], xmm2
movdqu xmmword [edx + esi], xmm3
add esi, 0x20
cmp eax, esi
jne 0x4fb340
mov ecx, dword [esp + 4]
cmp ecx, eax
jne 0x4fb439
mov eax, ecx
jmp 0x4fb41a
mov esi, ecx
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + eax]
mov ecx, esi
mov esi, edi
mov edi, dword [ebp + 8]
xor byte [edi + eax + 0x40], dl
xor dl, byte [edi + eax + 0x10]
mov byte [esi + eax], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
je 0x4fb416
mov edi, dword [esp + 0x10]
add edi, eax
lea ecx, [ebx + edi]
inc ecx
mov esi, dword [esp + 0xc]
add esi, edi
inc esi
mov edi, dword [ebp + 8]
add eax, edi
add eax, 0x41
xor edi, edi
nop word cs:[eax + eax]
movzx ebx, byte [ecx + edi - 1]
xor byte [eax + edi - 1], bl
xor bl, byte [eax + edi - 0x31]
mov byte [esi + edi - 1], bl
movzx ebx, byte [ecx + edi]
xor byte [eax + edi], bl
xor bl, byte [eax + edi - 0x30]
mov byte [esi + edi], bl
add edi, 2
cmp edx, edi
jne 0x4fb3f0
mov eax, dword [esp + 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x160], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
jmp 0x4fb273
test cl, 0x18
je 0x4fb49e
mov edi, dword [esp + 0x28]
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov dword [esp + 8], ecx
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
nop word [eax + eax]
movq xmm0, qword [ecx + edx]
movq xmm1, qword [esi + edx + 0x10]
movq xmm2, qword [esi + edx + 0x40]
pxor xmm2, xmm0
movq qword [esi + edx + 0x40], xmm2
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x4fb460
cmp dword [esp + 4], eax
mov ecx, dword [esp + 8]
jne 0x4fb273
jmp 0x4fb416
and ecx, 0x1f
jmp 0x4fb26f