Function at 0x4f9650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x38]
xor eax, eax
or ecx, dword [edi + 0x3c]
jne 0x4f99b7
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
add esi, ecx
adc edx, 0
mov ebx, edi
mov edi, esi
neg edi
mov edi, 0x20000000
sbb edi, edx
jb 0x4f99b7
mov edi, ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], edx
mov eax, dword [edi + 0x164]
test eax, eax
je 0x4f975c
test ecx, ecx
je 0x4f99ac
nop
movzx edx, byte [ebx]
xor byte [edi + eax + 0x40], dl
inc ebx
lea edx, [ecx - 1]
inc eax
and eax, 0xf
je 0x4f96c8
cmp ecx, 1
mov ecx, edx
jne 0x4f96b0
test eax, eax
jne 0x4f99ac
mov esi, 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 + 0x10], xmm0
lea ecx, [esp + 0x10]
call fcn.004fb680
mov edx, esi
movdqu xmm0, xmmword [esp + 0x10]
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 0x4f975e
mov edx, ecx
mov esi, edx
and esi, 0xfffffff0
je 0x4f995c
mov dword [esp + 4], edx
lea ecx, [edi + 0x50]
mov dword [esp + 8], ecx
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 + 0x10], xmm0
xor edi, edi
nop word cs:[eax + eax]
mov eax, dword [ebx + edi + 8]
mov ecx, dword [ebx + edi + 0xc]
bswap ecx
xor dword [esp + 0x10], ecx
bswap eax
xor dword [esp + 0x14], 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
lea ecx, [esp + 0x10]
mov edx, dword [esp + 8]
call fcn.004fb680
add edi, 0x10
cmp esi, edi
jne 0x4f97c0
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 0x10]
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 ecx, [ebx + esi]
mov edx, dword [esp + 4]
and edx, 0xf
test edx, edx
je 0x4f9966
mov dword [esp + 8], esi
xor eax, eax
cmp edx, 8
mov dword [esp + 4], edx
jb 0x4f992b
lea edx, [edi + 0x40]
mov dword [esp + 0xc], edx
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
add esi, edx
add esi, ebx
cmp dword [esp + 0xc], esi
mov edx, dword [esp + 4]
jae 0x4f9892
mov edx, dword [esp + 4]
add edx, edi
add edx, 0x40
cmp ecx, edx
mov edx, dword [esp + 4]
jb 0x4f992b
xor eax, eax
cmp edx, 0x20
jb 0x4f98ef
mov eax, edx
and eax, 0xffffffe0
mov edx, dword [esp + 8]
add edx, ebx
add edx, 0x10
xor esi, esi
nop dword [eax]
movdqu xmm0, xmmword [edx + esi - 0x10]
movdqu xmm1, xmmword [edx + esi]
movdqu xmm2, xmmword [edi + esi + 0x40]
pxor xmm2, xmm0
movdqu xmm0, xmmword [edi + esi + 0x50]
pxor xmm0, xmm1
movdqu xmmword [edi + esi + 0x40], xmm2
movdqu xmmword [edi + esi + 0x50], xmm0
add esi, 0x20
cmp eax, esi
jne 0x4f98b0
mov edx, dword [esp + 4]
cmp edx, eax
je 0x4f9924
test dl, 0x18
je 0x4f992b
mov esi, edx
mov edx, eax
mov eax, esi
and eax, 0xfffffff8
nop dword [eax + eax]
movq xmm0, qword [ecx + edx]
movq xmm1, qword [edi + edx + 0x40]
pxor xmm1, xmm0
movq qword [edi + edx + 0x40], xmm1
add edx, 8
cmp eax, edx
jne 0x4f9900
mov edx, dword [esp + 4]
cmp edx, eax
jne 0x4f992b
mov eax, edx
jmp 0x4f99ac
mov esi, eax
not esi
add esi, edx
mov dword [esp + 0xc], esi
mov esi, edx
and esi, 3
je 0x4f994c
mov edi, dword [ebp + 8]
nop
movzx edx, byte [ecx + eax]
xor byte [edi + eax + 0x40], dl
inc eax
dec esi
jne 0x4f9940
cmp dword [esp + 0xc], 3
jae 0x4f996a
mov eax, dword [esp + 4]
mov edi, dword [ebp + 8]
jmp 0x4f99ac
mov ecx, ebx
test edx, edx
jne 0x4f984d
xor eax, eax
jmp 0x4f99ac
mov ecx, dword [esp + 8]
add ecx, ebx
add ecx, 3
mov edi, dword [ebp + 8]
mov esi, dword [esp + 4]
nop word [eax + eax]
movzx edx, byte [ecx + eax - 3]
xor byte [edi + eax + 0x40], dl
movzx edx, byte [ecx + eax - 2]
xor byte [edi + eax + 0x41], dl
movzx edx, byte [ecx + eax - 1]
xor byte [edi + eax + 0x42], dl
movzx edx, byte [ecx + eax]
xor byte [edi + eax + 0x43], dl
add eax, 4
cmp esi, eax
jne 0x4f9980
mov eax, esi
mov dword [edi + 0x164], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret