Function at 0x488540
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004c72a0
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov esi, dword [esi]
je 0x488676
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ebp
test esi, esi
je 0x4885a4
mov ebx, dword [esp + 0x34]
jmp 0x488580
test edi, edi
je 0x4885a4
movzx ecx, byte [esi + ebx]
movzx eax, byte [ebp]
xor ecx, eax
mov byte [esi + ebx], cl
mov byte [edx], cl
inc edx
inc ebp
inc esi
dec edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ebp
and esi, 0xf
jne 0x488580
cmp edi, 0x10
jb 0x488618
mov ecx, dword [esp + 0x34]
mov eax, edi
shr eax, 4
mov dword [esp + 0x18], eax
shl eax, 4
mov ebx, edx
add edx, eax
sub ebx, ecx
sub ebp, ecx
add dword [esp + 0x3c], eax
mov dword [esp + 0x10], edx
jmp 0x4885d4
mov ecx, dword [esp + 0x34]
push dword [esp + 0x30]
push ecx
push ecx
call dword [esp + 0x4c]
add esp, 0xc
cmp esi, 0x10
jae 0x488607
mov ecx, dword [esp + 0x34]
mov edx, 0xf
sub edx, esi
shr edx, 2
add ecx, esi
inc edx
mov eax, dword [ecx + ebp]
xor dword [ecx], eax
mov eax, dword [ecx]
mov dword [ebx + ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4885f7
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x18]
jne 0x4885d0
test edi, edi
je 0x48879a
push dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
push ebp
push ebp
call dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
sub dword [esp + 0x48], ebp
lea edx, [esi + ebp]
add esp, 0xc
sub ebx, ebp
add esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x3c]
jmp 0x488650
movzx ecx, byte [edx + esi]
movzx eax, byte [edx]
xor ecx, eax
mov byte [edx], cl
mov byte [edx + ebx], cl
lea edx, [edx + 1]
dec edi
jne 0x488650
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], edi
test esi, esi
je 0x4886bc
mov edx, dword [esp + 0x34]
test ebx, ebx
je 0x4886bc
mov al, byte [esi + edx]
mov cl, byte [edi]
xor al, cl
mov byte [ebp], al
mov byte [esi + edx], cl
inc ebp
inc edi
dec ebx
inc esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ebx
and esi, 0xf
jne 0x488696
mov edx, dword [esp + 0x40]
cmp ebx, 0x10
jb 0x488757
mov ecx, dword [esp + 0x34]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, ebx
shr eax, 4
mov dword [esp + 0x1c], eax
jmp 0x4886e4
mov ecx, dword [esp + 0x34]
push dword [esp + 0x30]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x488731
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub ebx, ebp
mov ebp, 0xf
sub ebp, esi
add edi, esi
mov esi, dword [esp + 0x18]
shr ebp, 2
inc ebp
nop
mov eax, dword [edi]
lea ecx, [esi + edi]
lea edi, [edi + 4]
mov edx, dword [ecx + ebx]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
dec ebp
jne 0x488710
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
add dword [esp + 0x18], 0x10
mov edx, dword [esp + 0x40]
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
xor esi, esi
dec dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], edi
jne 0x4886e0
test ebx, ebx
je 0x48879a
push dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push eax
push eax
call edx
mov ecx, dword [esp + 0x40]
sub edi, ebp
lea eax, [esi + ecx]
add esp, 0xc
sub ebp, ecx
add esi, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], eax
mov esi, eax
mov al, byte [esi]
lea ecx, [esi + ebp]
lea esi, [esi + 1]
mov dl, byte [ecx + edi]
xor al, dl
mov byte [ecx], al
mov byte [esi - 1], dl
dec ebx
jne 0x488781
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret