Function at 0x4fa0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
add edx, dword [ebp + 0x18]
adc ecx, 0
xor eax, eax
mov edi, 0xffffffe0
cmp edi, edx
mov edi, 0xf
sbb edi, ecx
jb 0x4fa758
lea esi, [ebx + 0x50]
mov edi, dword [ebx + 0x158]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x164], 0
je 0x4fa18c
movdqu xmm0, xmmword [ebx + 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]
mov edx, esi
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 [ebx + 0x40], xmm0
mov dword [ebx + 0x164], 0
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x160]
test eax, eax
mov dword [esp + 0x14], edi
je 0x4fa290
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4fa74a
nop word [eax + eax]
movzx ecx, byte [edx]
inc edx
mov dword [esp], edx
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 8]
movzx edx, byte [ebx + eax + 0x10]
xor dl, cl
mov byte [edi], dl
mov edx, dword [esp]
xor byte [ebx + eax + 0x40], cl
inc edi
mov dword [esp + 8], edi
lea ecx, [esi - 1]
inc eax
and eax, 0xf
je 0x4fa1f3
cmp esi, 1
mov esi, ecx
jne 0x4fa1c0
test eax, eax
jne 0x4fa74a
mov edi, dword [ebp + 8]
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]
mov edx, dword [esp + 0x10]
call fcn.004fb680
mov edx, dword [esp]
mov ebx, edi
mov edi, 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 [ebx + 0x40], xmm0
jmp 0x4fa293
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebx + 0xc]
bswap esi
cmp edi, 0xc00
jb 0x4fa446
mov dword [esp + 0xc], esi
lea eax, [ebx + 0x10]
mov dword [esp + 0x30], eax
nop word cs:[eax + eax]
mov dword [esp + 4], edi
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov ebx, edx
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + 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 esi, 8
mov edi, dword [esp + 0x10]
nop word [eax + eax]
mov eax, dword [ebx + esi]
mov ecx, dword [ebx + esi + 4]
bswap ecx
xor dword [esp + 0x18], ecx
bswap eax
xor dword [esp + 0x1c], eax
mov eax, dword [ebx + esi - 8]
mov ecx, dword [ebx + esi - 4]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.004fb680
add esi, 0x10
cmp esi, 0xc08
jne 0x4fa320
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
xor esi, esi
mov edi, dword [esp + 0xc]
mov dword [esp], ebx
nop word cs:[eax + eax]
push dword [ebp + 0xc]
push dword [esp + 0x34]
mov ebx, dword [ebp + 8]
push ebx
call dword [esp + 0x20]
add esp, 0xc
inc edi
mov eax, edi
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp]
xor eax, dword [ecx + esi]
mov edx, dword [esp + 0x2c]
mov dword [edx + esi], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [ecx + esi + 4]
mov dword [edx + esi + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [ecx + esi + 8]
mov dword [edx + esi + 8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [ecx + esi + 0xc]
mov dword [edx + esi + 0xc], eax
add esi, 0x10
cmp esi, 0xc00
jne 0x4fa3b0
mov dword [esp + 0xc], edi
mov edi, dword [esp + 4]
add edi, 0xfffff400
mov eax, dword [esp]
lea edx, [eax + esi]
mov ebx, dword [esp + 0x2c]
lea eax, [ebx + esi]
mov dword [esp + 8], eax
cmp edi, 0xbff
ja 0x4fa2c0
mov edx, dword [esp]
add edx, esi
add ebx, esi
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, edi
and ecx, 0xff0
je 0x4fa597
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
movdqu xmm0, xmmword [ebx + 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 ebx, ebx
mov esi, ecx
nop dword [eax]
mov eax, dword [edx + ebx + 8]
mov ecx, dword [edx + ebx + 0xc]
bswap ecx
xor dword [esp + 0x18], ecx
bswap eax
xor dword [esp + 0x1c], eax
mov eax, dword [edx + ebx]
mov ecx, dword [edx + ebx + 4]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
mov edi, edx
mov edx, dword [esp + 0x10]
call fcn.004fb680
mov edx, edi
add ebx, 0x10
cmp esi, ebx
jne 0x4fa4a0
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 ebx, dword [ebp + 8]
movdqu xmmword [ebx + 0x40], xmm0
mov edi, dword [esp + 4]
cmp edi, 0x10
jb 0x4fa5e0
lea eax, [ebx + 0x10]
mov dword [esp], eax
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
nop dword [eax]
push eax
push dword [esp + 4]
push ebx
mov ebx, edx
call dword [esp + 0x20]
mov edx, ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc esi
mov eax, esi
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
add ecx, 0x10
mov dword [esp + 8], ecx
add edx, 0x10
add edi, 0xfffffff0
cmp edi, 0xf
ja 0x4fa540
test edi, edi
je 0x4fa5eb
mov dword [esp], edx
lea ecx, [ebx + 0x10]
push eax
mov dword [esp + 0x30], ecx
push ecx
push ebx
mov dword [esp + 0x10], edi
call dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add esp, 0xc
inc esi
bswap esi
mov dword [ebx + 0xc], esi
xor eax, eax
cmp ecx, 8
jae 0x4fa5f2
mov edx, dword [esp]
test cl, 1
jne 0x4fa6e1
mov edx, ecx
cmp ecx, 1
jne 0x4fa6ff
jmp 0x4fa746
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
test edi, edi
jne 0x4fa59b
xor eax, eax
jmp 0x4fa74a
lea edx, [ecx + ebx]
add edx, 0x40
mov dword [esp + 0xc], edx
mov esi, dword [esp + 8]
lea edi, [esi + ecx]
mov dword [esp + 0x30], edi
mov edx, dword [esp]
lea ebx, [edx + ecx]
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
setb byte [esp + 0x14]
mov edi, dword [esp + 0xc]
cmp esi, edi
setb byte [esp + 0x10]
cmp ecx, ebx
setb cl
cmp edx, edi
setb ch
cmp esi, ebx
setb bh
cmp edx, dword [esp + 0x30]
setb bl
movzx edx, byte [esp + 0x10]
test byte [esp + 0x14], dl
jne 0x4fa760
and cl, ch
jne 0x4fa760
mov ecx, dword [esp + 4]
and bh, bl
mov ebx, dword [ebp + 8]
mov edx, dword [esp]
jne 0x4fa5c7
xor eax, eax
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jb 0x4fa771
mov eax, ecx
and eax, 0xffffffe0
xor ecx, ecx
mov esi, dword [esp + 8]
nop dword [eax]
movdqu xmm0, xmmword [edx + ecx]
movdqu xmm1, xmmword [edx + ecx + 0x10]
movdqu xmm2, xmmword [ebx + ecx + 0x40]
movdqu xmm3, xmmword [ebx + ecx + 0x50]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [ebx + ecx + 0x40], xmm2
movdqu xmmword [ebx + ecx + 0x50], xmm3
movdqu xmm2, xmmword [ebx + ecx + 0x10]
movdqu xmm3, xmmword [ebx + ecx + 0x20]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [esi + ecx], xmm2
movdqu xmmword [esi + ecx + 0x10], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x4fa680
mov ecx, dword [esp + 4]
cmp ecx, eax
jne 0x4fa76c
mov eax, ecx
jmp 0x4fa74a
movzx edx, byte [edx + eax]
xor byte [ebx + eax + 0x40], dl
xor dl, byte [ebx + eax + 0x10]
mov esi, dword [esp + 8]
mov byte [esi + eax], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
je 0x4fa746
mov ecx, dword [esp]
add ecx, eax
inc ecx
mov esi, dword [esp + 8]
add esi, eax
inc esi
add eax, ebx
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 0x4fa720
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x160], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 8]
jmp 0x4fa5c4
test cl, 0x18
je 0x4fa7cc
mov esi, edx
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov edi, dword [esp + 8]
nop word cs:[eax + eax]
movq xmm0, qword [esi + edx]
movq xmm1, qword [ebx + edx + 0x10]
movq xmm2, qword [ebx + edx + 0x40]
pxor xmm2, xmm0
movq qword [ebx + edx + 0x40], xmm2
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x4fa790
cmp dword [esp + 4], eax
mov edx, esi
jne 0x4fa5c7
jmp 0x4fa746
and ecx, 0x1f
jmp 0x4fa5c7