Function at 0x488d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.004c72a0
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov eax, dword [ebp + 0x170]
mov edi, dword [esp + 0x30]
mov edx, dword [ebp + 0x160]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x174]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x164]
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov eax, edi
add eax, dword [ebp + 0x38]
mov dword [esp + 0x18], edx
adc ecx, dword [ebp + 0x3c]
cmp ecx, 0xf
ja 0x488fe3
jb 0x488dba
cmp eax, 0xffffffe0
ja 0x488fe3
cmp dword [ebp + 0x16c], 0
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
je 0x488de0
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call edx
add esp, 8
mov dword [ebp + 0x16c], 0
mov eax, dword [ebp + 0xc]
bswap eax
mov edx, dword [ebp + 0x168]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x488e3d
test edi, edi
je 0x488e26
mov cl, byte [edx + ebp + 0x10]
xor cl, byte [ebx]
lea eax, [edx + ebp]
mov byte [esi], cl
xor byte [eax + 0x40], cl
dec edi
inc edx
inc esi
inc ebx
and edx, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
jne 0x488e01
jmp 0x488e2e
test edx, edx
jne 0x488fbf
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x28]
add esp, 8
cmp edi, 0xc00
jb 0x488ee9
mov eax, 0xaaaaaaab
mul edi
shr edx, 0xb
lea ecx, [ebp + 0x10]
mov dword [esp + 0x20], edx
lea ebx, [ebx]
mov dword [esp + 0x1c], 0xc0
push dword [esp + 0x14]
push ecx
push ebp
call dword [esp + 0x24]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
bswap eax
mov dword [ebp + 0xc], eax
mov edi, ebx
add esp, 0xc
xor eax, eax
sub edi, esi
lea esp, [esp]
mov ecx, dword [eax + ebp + 0x10]
lea edx, [eax + esi]
add eax, 4
xor ecx, dword [edi + edx]
mov dword [edx], ecx
cmp eax, 0x10
jb 0x488e90
add esi, 0x10
add ebx, 0x10
dec dword [esp + 0x1c]
lea ecx, [ebp + 0x10]
jne 0x488e68
push 0xc00
lea eax, [esi - 0xc00]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x34]
mov edi, dword [esp + 0x48]
sub edi, 0xc00
add esp, 0x10
dec dword [esp + 0x20]
mov dword [esp + 0x38], edi
lea ecx, [ebp + 0x10]
jne 0x488e60
mov ecx, edi
and ecx, 0xfffffff0
mov dword [esp + 0x1c], ecx
je 0x488f6b
cmp edi, 0x10
jb 0x488f56
shr edi, 4
lea eax, [ebp + 0x10]
mov dword [esp + 0x20], edi
push dword [esp + 0x14]
push eax
push ebp
call dword [esp + 0x24]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
bswap eax
mov edi, ebx
add esp, 0xc
xor edx, edx
mov dword [ebp + 0xc], eax
sub edi, esi
mov eax, dword [edx + ebp + 0x10]
lea ecx, [edx + esi]
add edx, 4
xor eax, dword [edi + ecx]
mov dword [ecx], eax
cmp edx, 0x10
jb 0x488f24
mov edi, dword [esp + 0x38]
sub edi, 0x10
add esi, 0x10
add ebx, 0x10
dec dword [esp + 0x20]
mov dword [esp + 0x38], edi
lea eax, [ebp + 0x10]
jne 0x488f03
mov ecx, dword [esp + 0x1c]
push ecx
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x34]
add esp, 0x10
test edi, edi
je 0x488fcf
push dword [esp + 0x14]
lea eax, [ebp + 0x10]
push eax
push ebp
call dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
inc eax
bswap eax
add edx, esi
add esp, 0xc
sub ebx, esi
mov esi, dword [esp + 0x10]
mov dword [ebp + 0xc], eax
movzx eax, byte [edx + ebx]
movzx ecx, byte [esi + ebp + 0x10]
xor ecx, eax
lea eax, [esi + ebp]
mov byte [edx], cl
xor byte [eax + 0x40], cl
inc esi
lea edx, [edx + 1]
dec edi
jne 0x488f95
mov dword [ebp + 0x168], esi
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x18
ret
pop esi
pop ebx
pop edi
mov dword [ebp + 0x168], edx
xor eax, eax
pop ebp
add esp, 0x18
ret
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x168], esi
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x18
ret
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret