Function at 0x4b0940
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx]
test esi, esi
je 0x4b0993
test eax, eax
je 0x4b0993
nop word cs:[eax + eax]
nop
movzx ecx, byte [edx + esi]
xor cl, byte [ebp]
add ebp, 1
mov byte [ebx], cl
add ebx, 1
lea ecx, [eax - 1]
add esi, 1
and esi, 0xf
je 0x4b0995
cmp eax, 1
mov eax, ecx
jne 0x4b0970
jmp 0x4b0995
mov ecx, eax
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ecx, 0x10
jb 0x4b0ab8
nop word [eax + eax]
mov dword [esp], ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push edi
mov esi, edx
call edx
mov edx, esi
add esp, 0xc
movzx eax, byte [edi + 0xf]
add eax, 1
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov ecx, dword [esp]
mov byte [edi + 1], al
add byte [edi], ah
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
xor eax, dword [ebp]
mov dword [ebx], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x3c]
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
cmp ecx, 0xf
ja 0x4b09b0
xor esi, esi
test ecx, ecx
je 0x4b0cef
push eax
mov eax, dword [esp + 0x48]
push eax
push edi
mov dword [esp + 0xc], ecx
call edx
add esp, 0xc
movzx eax, byte [edi + 0xf]
add eax, 1
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov ecx, dword [esp]
mov byte [edi + 1], al
add byte [edi], ah
cmp ecx, 0x20
jae 0x4b0b9e
mov edi, dword [esp + 0x44]
test cl, 1
jne 0x4b0cfb
jmp 0x4b0ca3
lea eax, [ebx + esi]
add ecx, esi
lea edx, [ebx + ecx]
lea edi, [ecx + ebp]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x44]
add ecx, edi
cmp eax, dword [esp + 4]
lea edi, [ebp + esi]
setb byte [esp + 4]
cmp edi, edx
setb byte [esp + 8]
cmp eax, ecx
mov edi, dword [esp + 0x44]
lea ecx, [edi + esi]
setb al
cmp ecx, edx
setb cl
mov dl, byte [esp + 8]
test byte [esp + 4], dl
jne 0x4b0c9b
and al, cl
jne 0x4b0c9b
mov ecx, dword [esp]
and ecx, 0xffffffe0
lea eax, [ecx - 0x20]
mov edx, eax
shr edx, 5
add edx, 1
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
je 0x4b0cb1
mov eax, edi
and edx, 0xfffffffe
lea ecx, [ebx + esi]
add ecx, 0x30
mov dword [esp + 8], ecx
lea eax, [edi + esi + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esi + ebp]
add eax, 0x30
mov dword [esp + 0x14], eax
xor ecx, ecx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
nop word [eax + eax]
mov dword [esp + 4], edx
movups xmm0, xmmword [edi + ecx - 0x30]
movups xmm1, xmmword [edi + ecx - 0x20]
movups xmm2, xmmword [eax + ecx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + ecx - 0x20]
xorps xmm0, xmm1
mov edx, dword [esp + 8]
movups xmmword [edx + ecx - 0x30], xmm2
movups xmmword [edx + ecx - 0x20], xmm0
movups xmm0, xmmword [edi + ecx - 0x10]
movups xmm1, xmmword [edi + ecx]
movups xmm2, xmmword [eax + ecx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + ecx]
xorps xmm0, xmm1
movups xmmword [edx + ecx - 0x10], xmm2
movups xmmword [edx + ecx], xmm0
mov edx, dword [esp + 4]
add ecx, 0x40
add edx, 0xfffffffe
jne 0x4b0c40
jmp 0x4b0cb3
mov ecx, dword [esp]
test cl, 1
jne 0x4b0cfb
mov edx, ecx
mov eax, edx
cmp edx, 1
jne 0x4b0d20
jmp 0x4b0d42
xor ecx, ecx
test byte [esp + 0xc], 1
mov edi, dword [esp + 0x44]
je 0x4b0ce2
add ecx, esi
movups xmm0, xmmword [ebp + ecx]
movups xmm1, xmmword [ebp + ecx + 0x10]
movups xmm2, xmmword [edi + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm0
mov eax, dword [esp + 0x10]
add esi, eax
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4b0cf3
mov ecx, esi
jmp 0x4b0d42
and ecx, 0x1f
test cl, 1
je 0x4b0ca3
lea eax, [ecx - 1]
mov edx, ecx
mov cl, byte [edi + esi]
xor cl, byte [ebp + esi]
mov byte [ebx + esi], cl
add esi, 1
mov ecx, esi
cmp edx, 1
je 0x4b0d42
nop word cs:[eax + eax]
nop
movzx ecx, byte [edi + esi]
xor cl, byte [ebp + esi]
mov byte [ebx + esi], cl
movzx edx, byte [edi + esi + 1]
xor dl, byte [ebp + esi + 1]
lea ecx, [esi + 2]
mov byte [ebx + esi + 1], dl
mov esi, ecx
add eax, 0xfffffffe
jne 0x4b0d20
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret