Function at 0x4888a0
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 0x488b0d
jb 0x4888fa
cmp eax, 0xffffffe0
ja 0x488b0d
cmp dword [ebp + 0x16c], 0
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
je 0x488920
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 0x488980
test edi, edi
je 0x488969
mov al, byte [edx + ebp + 0x10]
mov cl, byte [ebx]
xor al, cl
mov byte [esi], al
xor byte [edx + ebp + 0x40], cl
lea eax, [edx + ebp]
dec edi
inc edx
inc ebx
inc esi
and edx, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
jne 0x488941
jmp 0x488971
test edx, edx
jne 0x488ae9
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x28]
add esp, 8
cmp edi, 0xc00
jb 0x488a1c
mov eax, 0xaaaaaaab
mul dword [esp + 0x38]
shr edx, 0xb
lea ecx, [ebp + 0x60]
lea edi, [ebp + 0x10]
mov dword [esp + 0x20], edx
push 0xc00
push ebx
push ecx
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x1c], 0xc0
lea esp, [esp]
push dword [esp + 0x14]
push edi
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
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 0x4889e1
add esi, 0x10
add ebx, 0x10
dec dword [esp + 0x1c]
lea edi, [ebp + 0x10]
jne 0x4889c0
sub dword [esp + 0x38], 0xc00
dec dword [esp + 0x20]
lea edi, [ebp + 0x10]
lea ecx, [ebp + 0x60]
jne 0x4889a2
mov edi, dword [esp + 0x38]
mov eax, edi
and eax, 0xfffffff0
je 0x488a92
push eax
push ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push eax
call dword [esp + 0x34]
add esp, 0x10
cmp edi, 0x10
jb 0x488a92
shr edi, 4
lea eax, [ebp + 0x10]
mov dword [esp + 0x24], 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 0x488a64
mov edi, dword [esp + 0x38]
sub edi, 0x10
add esi, 0x10
add ebx, 0x10
dec dword [esp + 0x24]
mov dword [esp + 0x38], edi
lea eax, [ebp + 0x10]
jne 0x488a43
test edi, edi
je 0x488af9
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
lea esp, [esp]
mov cl, byte [edx + ebx]
xor byte [esi + ebp + 0x40], cl
lea eax, [esi + ebp]
mov al, byte [esi + ebp + 0x10]
xor al, cl
inc esi
mov byte [edx], al
lea edx, [edx + 1]
dec edi
jne 0x488ac0
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