Function at 0x4f9300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
pxor xmm0, xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x164], 0
mov dword [ebx + 0x160], 0
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x40], xmm0
cmp esi, 0xc
jne 0x4f935f
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
movq xmm0, qword [edi]
movq qword [ebx], xmm0
mov byte [ebx + 0xf], 1
mov esi, 2
jmp 0x4f9627
cmp esi, 0x10
jb 0x4f9464
lea eax, [ebx + 0x50]
mov dword [esp + 0x18], eax
xor edx, edx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
nop word [eax + eax]
mov dword [esp + 4], esi
xor ecx, dword [edi]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
xor eax, dword [edi + 4]
mov dword [esi + 4], eax
xor ebx, dword [edi + 8]
mov dword [esi + 8], ebx
xor edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
movdqu xmm0, xmmword [esi]
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 + 8], xmm0
lea ecx, [esp + 8]
mov edx, dword [esp + 0x18]
call fcn.004fb680
movdqu xmm1, xmmword [esp + 8]
movdqa xmm0, xmm1
pxor xmm3, xmm3
punpckhbw xmm0, xmm3
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm2, xmm0, 0x1b
punpcklbw xmm1, xmm3
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm3, xmm1, 0x1b
movdqa xmm1, xmm3
packuswb xmm1, xmm2
packuswb xmm2, xmm3
movdqu xmmword [esi], xmm2
mov esi, dword [esp + 4]
add edi, 0x10
add esi, 0xfffffff0
pshufd xmm2, xmm1, 0xff
movd eax, xmm2
packuswb xmm0, xmm0
movd ecx, xmm0
movd ebx, xmm1
pshufd xmm0, xmm1, 0x55
movd edx, xmm0
cmp esi, 0xf
ja 0x4f9380
test esi, esi
jne 0x4f9474
jmp 0x4f958e
xor ecx, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
test esi, esi
je 0x4f958e
xor eax, eax
cmp esi, 8
jae 0x4f9480
mov ebx, dword [ebp + 8]
jmp 0x4f94be
lea ecx, [edi + esi]
mov ebx, dword [ebp + 8]
cmp ecx, ebx
jbe 0x4f9491
lea ecx, [ebx + esi]
cmp edi, ecx
jb 0x4f94be
mov eax, esi
and eax, 8
xor ecx, ecx
nop dword [eax + eax]
movq xmm0, qword [edi + ecx]
movq xmm1, qword [ebx + ecx]
pxor xmm1, xmm0
movq qword [ebx + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4f94a0
cmp esi, eax
je 0x4f9529
mov edx, esi
sub edx, eax
mov ecx, eax
not ecx
add ecx, esi
mov dword [esp + 4], ecx
and edx, 3
je 0x4f94f1
nop word cs:[eax + eax]
movzx ebx, byte [edi + eax]
mov ecx, dword [ebp + 8]
xor byte [ecx + eax], bl
mov ebx, dword [ebp + 8]
inc eax
dec edx
jne 0x4f94e0
cmp dword [esp + 4], 3
jb 0x4f9529
nop dword [eax + eax]
movzx ecx, byte [edi + eax]
xor byte [ebx + eax], cl
movzx ecx, byte [edi + eax + 1]
xor byte [ebx + eax + 1], cl
movzx ecx, byte [edi + eax + 2]
xor byte [ebx + eax + 2], cl
movzx ecx, byte [edi + eax + 3]
xor byte [ebx + eax + 3], cl
add eax, 4
cmp esi, eax
jne 0x4f9500
lea edx, [ebx + 0x50]
movdqu xmm0, xmmword [ebx]
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 + 8], xmm0
lea ecx, [esp + 8]
call fcn.004fb680
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
bswap ecx
bswap eax
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap ebx
bswap edx
mov edi, dword [ebp + 0x14]
mov esi, edi
shl edi, 3
bswap edi
xor edi, edx
shr esi, 0x1d
bswap esi
xor esi, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
bswap edx
mov dword [esp + 0xc], edx
bswap esi
mov dword [esp + 8], esi
bswap ecx
mov dword [esp + 0x14], ecx
bswap eax
mov dword [esp + 0x10], eax
lea edx, [ebx + 0x50]
lea ecx, [esp + 8]
call fcn.004fb680
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 8]
movdqa xmm2, xmm1
punpckhbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpcklbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
movdqa xmm1, xmm0
packuswb xmm1, xmm2
packuswb xmm2, xmm0
movdqu xmmword [ebx], xmm2
pshufd xmm0, xmm1, 0x55
movd esi, xmm0
bswap esi
inc esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x20]
push ecx
push eax
push ebx
call dword [ebx + 0x158]
add esp, 0xc
bswap esi
mov dword [ebx + 0xc], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret