Function at 0x4b1e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov esi, dword [ecx]
test esi, esi
setne dl
test eax, eax
setne cl
and cl, dl
cmp dword [esp + 0x48], 0
mov ebp, dword [esp + 0x30]
je 0x4b1e96
test cl, cl
je 0x4b1ed8
mov edx, dword [esp + 0x40]
nop word cs:[eax + eax]
nop
movzx ecx, byte [edx + esi]
xor cl, byte [ebp]
add ebp, 1
mov byte [edx + esi], cl
mov byte [ebx], cl
add ebx, 1
lea ecx, [eax - 1]
add esi, 1
and esi, 0xf
je 0x4b1ede
cmp eax, 1
mov eax, ecx
jne 0x4b1e70
jmp 0x4b1ede
test cl, cl
je 0x4b2131
nop
movzx ecx, byte [ebp]
add ebp, 1
mov edx, dword [esp + 0x40]
movzx edx, byte [edx + esi]
xor dl, cl
mov byte [ebx], dl
mov edx, dword [esp + 0x40]
add ebx, 1
mov byte [edx + esi], cl
lea ecx, [eax - 1]
add esi, 1
and esi, 0xf
je 0x4b2137
cmp eax, 1
mov eax, ecx
jne 0x4b1ea0
jmp 0x4b2137
mov ecx, eax
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x4b1fb1
mov dword [esp], ecx
push dword [esp + 0x3c]
push edx
push edx
call fcn.004ac5d0
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp esi, 0xf
ja 0x4b1f4d
mov eax, dword [ebp + esi]
xor eax, dword [edx + esi]
mov dword [edx + esi], eax
mov dword [ebx + esi], eax
cmp esi, 0xb
ja 0x4b1f4d
mov eax, dword [ebp + esi + 4]
xor eax, dword [edx + esi + 4]
mov dword [edx + esi + 4], eax
mov dword [ebx + esi + 4], eax
cmp esi, 7
ja 0x4b1f4d
mov eax, dword [ebp + esi + 8]
xor eax, dword [edx + esi + 8]
mov dword [edx + esi + 8], eax
mov dword [ebx + esi + 8], eax
cmp esi, 3
ja 0x4b1f4d
mov eax, dword [ebp + esi + 0xc]
xor eax, dword [edx + esi + 0xc]
mov dword [edx + esi + 0xc], eax
mov dword [ebx + esi + 0xc], eax
mov ecx, dword [esp]
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp ecx, 0x10
jb 0x4b1fb1
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 [ebp]
xor eax, dword [edx]
mov dword [edx], eax
mov dword [ebx], eax
mov eax, dword [ebp + 4]
xor eax, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
xor eax, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [edx + 0xc]
mov dword [edx + 0xc], eax
mov dword [ebx + 0xc], eax
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
cmp ecx, 0xf
ja 0x4b1f60
test ecx, ecx
je 0x4b2499
push dword [esp + 0x3c]
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 0x4b2006
mov edx, edi
test cl, 1
je 0x4b23ad
mov al, byte [edx + esi]
xor al, byte [ebp + esi]
mov edi, ecx
add ecx, 0xffffffff
mov byte [edx + esi], al
mov byte [ebx + esi], al
add esi, 1
mov eax, esi
cmp edi, 1
je 0x4b249b
jmp 0x4b23c0
mov eax, ecx
lea edx, [edi + esi]
lea eax, [ecx + esi]
lea ecx, [edi + eax]
mov dword [esp + 8], ecx
lea edi, [ebx + esi]
lea ecx, [ebx + eax]
mov dword [esp + 0x10], ecx
add eax, ebp
cmp edx, ecx
setb byte [esp + 0x14]
mov ecx, dword [esp + 8]
cmp edi, ecx
setb byte [esp + 0xc]
cmp edx, eax
lea edx, [ebp + esi]
setb byte [esp + 4]
cmp edx, ecx
setb cl
cmp edi, eax
setb al
cmp edx, dword [esp + 0x10]
setb ah
mov dl, byte [esp + 0xc]
test byte [esp + 0x14], dl
jne 0x4b239d
and byte [esp + 4], cl
jne 0x4b239d
and al, ah
mov edx, dword [esp + 0x40]
mov ecx, dword [esp]
jne 0x4b23a4
and ecx, 0xffffffe0
lea eax, [ecx - 0x20]
mov edi, eax
shr edi, 5
add edi, 1
test eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
je 0x4b23fa
mov eax, edx
mov edx, edi
and edx, 0xfffffffe
lea ecx, [ebx + esi]
add ecx, 0x30
mov dword [esp + 0x10], ecx
lea edi, [eax + esi]
add edi, 0x30
lea eax, [esi + ebp]
add eax, 0x30
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
nop dword [eax + eax]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
movups xmm0, xmmword [edx + ecx - 0x30]
movups xmm1, xmmword [edx + ecx - 0x20]
movups xmm2, xmmword [edi + ecx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + ecx - 0x20]
xorps xmm0, xmm1
movups xmmword [edi + ecx - 0x30], xmm2
movups xmmword [edi + ecx - 0x20], xmm0
movups xmmword [eax + ecx - 0x30], xmm2
movups xmmword [eax + ecx - 0x20], xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
movups xmm1, xmmword [edx + ecx]
mov edx, dword [esp + 0x14]
movups xmm2, xmmword [edi + ecx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + ecx]
xorps xmm0, xmm1
movups xmmword [edi + ecx - 0x10], xmm2
movups xmmword [edi + ecx], xmm0
movups xmmword [eax + ecx - 0x10], xmm2
movups xmmword [eax + ecx], xmm0
add ecx, 0x40
add edx, 0xfffffffe
jne 0x4b20c0
jmp 0x4b23fc
mov ecx, eax
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x4b2229
mov dword [esp], ecx
push dword [esp + 0x3c]
push edx
push edx
call fcn.004ac5d0
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp esi, 0xf
ja 0x4b21ae
mov eax, dword [ebp + esi]
mov ecx, dword [edx + esi]
xor ecx, eax
mov dword [ebx + esi], ecx
mov dword [edx + esi], eax
cmp esi, 0xb
ja 0x4b21ae
mov eax, dword [ebp + esi + 4]
mov ecx, dword [edx + esi + 4]
xor ecx, eax
mov dword [ebx + esi + 4], ecx
mov dword [edx + esi + 4], eax
cmp esi, 7
ja 0x4b21ae
mov eax, dword [ebp + esi + 8]
mov ecx, dword [edx + esi + 8]
xor ecx, eax
mov dword [ebx + esi + 8], ecx
mov dword [edx + esi + 8], eax
cmp esi, 3
ja 0x4b21ae
mov eax, dword [ebp + esi + 0xc]
mov ecx, dword [edx + esi + 0xc]
xor ecx, eax
mov dword [ebx + esi + 0xc], ecx
mov dword [edx + esi + 0xc], eax
mov ecx, dword [esp]
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp ecx, 0x10
jb 0x4b2229
nop word cs:[eax + eax]
nop dword [eax + eax]
push dword [esp + 0x3c]
push edx
push edx
mov edi, ecx
call fcn.004ac5d0
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [ebp]
mov ecx, dword [edx]
xor ecx, eax
mov dword [ebx], ecx
mov dword [edx], eax
mov eax, dword [ebp + 4]
mov ecx, dword [edx + 4]
xor ecx, eax
mov dword [ebx + 4], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 8]
xor ecx, eax
mov dword [ebx + 8], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
xor ecx, eax
mov dword [ebx + 0xc], ecx
mov ecx, edi
mov dword [edx + 0xc], eax
add ecx, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
cmp ecx, 0xf
ja 0x4b21d0
test ecx, ecx
je 0x4b2499
push dword [esp + 0x3c]
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
jb 0x4b2384
mov eax, ecx
lea ecx, [ebx + esi]
add eax, esi
lea edx, [ebx + eax]
mov dword [esp + 8], edx
lea edx, [edi + esi]
mov dword [esp + 4], edx
lea edx, [edi + eax]
mov dword [esp + 0x10], edx
add eax, ebp
cmp ecx, edx
mov edx, ecx
setb byte [esp + 0x14]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp edi, ecx
setb byte [esp + 0xc]
cmp edx, eax
lea edx, [ebp + esi]
setb byte [esp + 0x1b]
cmp edx, ecx
setb ch
cmp edi, eax
setb al
cmp edx, dword [esp + 0x10]
setb ah
mov cl, byte [esp + 0xc]
test byte [esp + 0x14], cl
jne 0x4b2381
and byte [esp + 0x1b], ch
jne 0x4b2381
and al, ah
mov ecx, dword [esp + 0x40]
jne 0x4b2381
mov edx, dword [esp]
and edx, 0xffffffe0
lea eax, [edx - 0x20]
mov edi, eax
shr edi, 5
add edi, 1
test eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
je 0x4b2452
mov edx, edi
and edx, 0xfffffffe
lea eax, [ebx + esi]
add eax, 0x30
mov dword [esp + 0x10], eax
lea eax, [esi + ebp]
add eax, 0x30
mov dword [esp + 0xc], eax
lea eax, [ecx + esi]
add eax, 0x30
xor ecx, ecx
mov edi, dword [esp + 0x10]
nop
mov dword [esp + 0x14], edx
movups xmm0, xmmword [eax + ecx - 0x30]
movups xmm1, xmmword [eax + ecx - 0x20]
mov edx, dword [esp + 0xc]
movups xmm2, xmmword [edx + ecx - 0x30]
movups xmm3, xmmword [edx + ecx - 0x20]
xorps xmm0, xmm2
xorps xmm1, xmm3
movups xmmword [edi + ecx - 0x30], xmm0
movups xmmword [edi + ecx - 0x20], xmm1
movups xmmword [eax + ecx - 0x30], xmm2
movups xmmword [eax + ecx - 0x20], xmm3
movups xmm0, xmmword [eax + ecx - 0x10]
movups xmm1, xmmword [eax + ecx]
movups xmm2, xmmword [edx + ecx - 0x10]
movups xmm3, xmmword [edx + ecx]
mov edx, dword [esp + 0x14]
xorps xmm0, xmm2
xorps xmm1, xmm3
movups xmmword [edi + ecx - 0x10], xmm0
movups xmmword [edi + ecx], xmm1
movups xmmword [eax + ecx - 0x10], xmm2
movups xmmword [eax + ecx], xmm3
add ecx, 0x40
add edx, 0xfffffffe
jne 0x4b2310
jmp 0x4b2454
mov ecx, dword [esp]
test cl, 1
jne 0x4b24b5
mov edi, ecx
cmp edi, 1
jne 0x4b24e0
jmp 0x4b249b
mov edx, dword [esp + 0x40]
mov ecx, dword [esp]
test cl, 1
jne 0x4b1fe1
mov edi, ecx
cmp edi, 1
je 0x4b249b
nop dword [eax + eax]
movzx eax, byte [edx + esi]
xor al, byte [ebp + esi]
mov byte [edx + esi], al
mov byte [ebx + esi], al
mov eax, dword [esp + 0x40]
movzx edx, byte [eax + esi + 1]
xor dl, byte [ebp + esi + 1]
lea eax, [esi + 2]
mov edi, dword [esp + 0x40]
mov byte [edi + esi + 1], dl
mov byte [ebx + esi + 1], dl
mov edx, dword [esp + 0x40]
mov esi, eax
add ecx, 0xfffffffe
jne 0x4b23c0
jmp 0x4b249b
xor ecx, ecx
test byte [esp + 4], 1
mov edx, dword [esp + 0x40]
je 0x4b2434
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 [edx + ecx], xmm2
movups xmmword [edx + ecx + 0x10], xmm0
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm0
mov eax, dword [esp + 8]
add esi, eax
mov ecx, dword [esp]
cmp ecx, eax
je 0x4b2499
and ecx, 0x1f
test cl, 1
je 0x4b23ad
jmp 0x4b1fe1
xor ecx, ecx
test byte [esp + 4], 1
mov eax, dword [esp + 0x40]
je 0x4b248c
add ecx, esi
movups xmm0, xmmword [eax + ecx]
movups xmm1, xmmword [eax + ecx + 0x10]
movups xmm2, xmmword [ebp + ecx]
movups xmm3, xmmword [ebp + ecx + 0x10]
xorps xmm0, xmm2
xorps xmm1, xmm3
movups xmmword [ebx + ecx], xmm0
movups xmmword [ebx + ecx + 0x10], xmm1
movups xmmword [eax + ecx], xmm2
movups xmmword [eax + ecx + 0x10], xmm3
mov eax, dword [esp + 8]
add esi, eax
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4b24a9
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
and ecx, 0x1f
test cl, 1
je 0x4b238d
mov edi, ecx
add ecx, 0xffffffff
mov al, byte [ebp + esi]
mov edx, dword [esp + 0x40]
mov dl, byte [edx + esi]
xor dl, al
mov byte [ebx + esi], dl
mov edx, dword [esp + 0x40]
mov byte [edx + esi], al
add esi, 1
mov eax, esi
cmp edi, 1
je 0x4b249b
nop dword [eax + eax]
movzx eax, byte [ebp + esi]
mov edx, dword [esp + 0x40]
movzx edx, byte [edx + esi]
xor dl, al
mov byte [ebx + esi], dl
mov edx, dword [esp + 0x40]
mov byte [edx + esi], al
movzx edx, byte [ebp + esi + 1]
mov eax, dword [esp + 0x40]
mov dh, byte [eax + esi + 1]
xor dh, dl
lea eax, [esi + 2]
mov byte [ebx + esi + 1], dh
mov edi, dword [esp + 0x40]
mov byte [edi + esi + 1], dl
mov esi, eax
add ecx, 0xfffffffe
jne 0x4b24e0
jmp 0x4b249b