Function at 0x4b17d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx]
test eax, eax
je 0x4b1823
test esi, esi
je 0x4b1823
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 0x4b1825
cmp eax, 1
mov eax, ecx
jne 0x4b1800
jmp 0x4b1825
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp ecx, 0x10
jb 0x4b18ea
mov edi, ecx
push eax
push edx
push edx
call fcn.004ac5d0
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp esi, 0xf
ja 0x4b1885
mov eax, dword [edx + esi]
xor eax, dword [ebp + esi]
mov dword [ebx + esi], eax
cmp esi, 0xb
ja 0x4b1885
mov eax, dword [edx + esi + 4]
xor eax, dword [ebp + esi + 4]
mov dword [ebx + esi + 4], eax
cmp esi, 7
ja 0x4b1885
mov eax, dword [edx + esi + 8]
xor eax, dword [ebp + esi + 8]
mov dword [ebx + esi + 8], eax
cmp esi, 3
ja 0x4b1885
mov eax, dword [edx + esi + 0xc]
xor eax, dword [ebp + esi + 0xc]
mov dword [ebx + esi + 0xc], eax
mov ecx, edi
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp ecx, 0x10
jb 0x4b18e6
nop word [eax + eax]
push dword [esp + 0x3c]
push edx
push edx
mov edi, ecx
call fcn.004ac5d0
mov ecx, edi
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [edx]
xor eax, dword [ebp]
mov dword [ebx], eax
mov eax, dword [edx + 4]
xor eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
xor eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
cmp ecx, 0xf
ja 0x4b18a0
mov eax, dword [esp + 0x3c]
test ecx, ecx
je 0x4b1ada
push eax
push edx
push edx
mov edi, edx
mov dword [esp + 0xc], ecx
call fcn.004ac5d0
mov ecx, dword [esp + 0xc]
add esp, 0xc
cmp ecx, 0x20
jae 0x4b1929
mov edx, edi
test cl, 1
jne 0x4b1a4b
mov edi, ecx
mov eax, edi
cmp edi, 1
jne 0x4b1a70
jmp 0x4b1adc
lea eax, [ebx + esi]
mov dword [esp + 0x10], eax
add ecx, esi
lea eax, [ebx + ecx]
mov dword [esp + 0xc], eax
lea eax, [ecx + ebp]
mov dword [esp + 8], eax
add ecx, edi
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 8]
lea edx, [ebp + esi]
mov dword [esp + 4], edx
setb byte [esp + 8]
mov edx, dword [esp + 0xc]
cmp dword [esp + 4], edx
setb byte [esp + 4]
cmp eax, ecx
lea ecx, [edi + esi]
setb al
cmp ecx, edx
setb cl
mov dl, byte [esp + 4]
test byte [esp + 8], dl
jne 0x4b1a3b
and al, cl
jne 0x4b1a3b
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 + 0x18], ecx
mov dword [esp + 0x14], edx
je 0x4b1a9c
and edx, 0xfffffffe
lea eax, [ebx + esi]
add eax, 0x30
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
lea eax, [eax + esi + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esi + ebp]
add eax, 0x30
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 4]
nop word cs:[eax + eax]
nop
mov dword [esp + 8], edx
mov edx, dword [esp + 0xc]
movups xmm0, xmmword [edx + ecx - 0x30]
movups xmm1, xmmword [edx + ecx - 0x20]
movups xmm2, xmmword [eax + ecx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + ecx - 0x20]
xorps xmm0, xmm1
movups xmmword [edi + ecx - 0x30], xmm2
movups xmmword [edi + ecx - 0x20], xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
movups xmm1, xmmword [edx + ecx]
mov edx, dword [esp + 8]
movups xmm2, xmmword [eax + ecx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + ecx]
xorps xmm0, xmm1
movups xmmword [edi + ecx - 0x10], xmm2
movups xmmword [edi + ecx], xmm0
add ecx, 0x40
add edx, 0xfffffffe
jne 0x4b19e0
jmp 0x4b1a9e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp]
test cl, 1
je 0x4b1917
lea eax, [ecx - 1]
mov edi, ecx
mov cl, byte [edx + esi]
xor cl, byte [ebp + esi]
mov byte [ebx + esi], cl
add esi, 1
mov ecx, esi
cmp edi, 1
je 0x4b1adc
nop word cs:[eax + eax]
nop
movzx ecx, byte [edx + esi]
xor cl, byte [ebp + esi]
mov byte [ebx + esi], cl
mov ecx, dword [esp + 0x40]
movzx edx, byte [ecx + esi + 1]
xor dl, byte [ebp + esi + 1]
lea ecx, [esi + 2]
mov byte [ebx + esi + 1], dl
mov edx, dword [esp + 0x40]
mov esi, ecx
add eax, 0xfffffffe
jne 0x4b1a70
jmp 0x4b1adc
xor ecx, ecx
test byte [esp + 0x14], 1
mov edx, dword [esp + 0x40]
je 0x4b1acd
add ecx, esi
movups xmm0, xmmword [ebp + ecx]
movups xmm1, xmmword [ebp + ecx + 0x10]
movups xmm2, xmmword [edx + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm0
mov eax, dword [esp + 0x18]
add esi, eax
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4b1aea
mov ecx, esi
mov eax, dword [esp + 0x44]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
and ecx, 0x1f
test cl, 1
je 0x4b1917
jmp 0x4b1a4b