Function at 0x4b8530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test bl, 0x40
jne 0x4b8564
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x2c], edx
cmp edx, 0xf
jae 0x4b8593
lea ecx, [ecx]
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4b8580
movzx eax, byte [esi + 0xf]
mov ebx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x4b85ad
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4b85d9
ja 0x4b85ce
cmp dword [esi + 0x20], 0
jbe 0x4b85d9
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x10
jb 0x4b8671
mov eax, ebx
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [ebp - 0xc]
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [ebp - 0x10]
add esp, 0x18
mov ecx, 8
dec ecx
inc byte [ecx + esi + 8]
jne 0x4b8633
test ecx, ecx
jne 0x4b8628
mov edx, dword [ebp - 8]
sub ebx, 0x10
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x38]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor ecx, dword [ebp - 0x34]
xor eax, dword [ebp - 0x30]
mov dword [edx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [edx + 0xc], eax
add edx, 0x10
dec dword [ebp + 0x14]
mov dword [ebp - 8], edx
jne 0x4b85f7
mov dword [ebp + 0x14], ebx
jmp 0x4b8677
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edi
test ebx, ebx
je 0x4b878a
xor ecx, ecx
test ebx, ebx
je 0x4b8694
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x4b8688
push dword [ebp - 0xc]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [ebp - 0x10]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x4b878a
mov ecx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x4b8765
lea eax, [ebp + ebx - 0x3d]
cmp ecx, eax
ja 0x4b86df
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ecx - 1]
add eax, ebx
cmp eax, dword [ebp - 0x14]
jae 0x4b8765
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x4b86f1
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x4b8765
mov eax, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
lea ebx, [ebp - 0x2c]
sub esi, edi
and eax, 0x1f
sub dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x3c]
sub esi, edi
sub ebx, edi
mov dword [ebp - 0x24], ebx
lea ebx, [ecx + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov ebx, esi
mov dword [ebp - 0x20], esi
movdqu xmm0, xmmword [eax]
mov esi, dword [ebp - 0x28]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx + eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [esi + edx], xmm1
mov esi, dword [ebp + 8]
add edx, 0x20
cmp edx, dword [ebp - 0x14]
jb 0x4b8723
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp edx, ebx
jae 0x4b878a
lea eax, [ebp - 0x3c]
sub edi, eax
sub ecx, eax
mov dword [ebp - 8], ecx
mov esi, ecx
lea ecx, [ebp - 0x3c]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
cmp edx, ebx
jb 0x4b8775
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jae 0x4b87ac
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x38]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x34]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret