Function at 0x4a8af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.00525ec0
mov eax, dword [esi + 0x170]
mov edx, dword [esi + 0x160]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push edi
mov edi, ecx
mov ecx, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
xor eax, eax
add ecx, dword [esi + 0x38]
mov dword [esp + 0x1c], edx
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x4a8d42
jb 0x4a8b4b
cmp ecx, 0xffffffe0
ja 0x4a8d42
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
je 0x4a8b71
lea ecx, [esi + 0x60]
push ecx
lea eax, [esi + 0x40]
push eax
call edx
add esp, 8
mov dword [esi + 0x16c], 0
mov eax, dword [esi + 0x168]
mov ebp, dword [esi + 0xc]
bswap ebp
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a8bd6
jmp 0x4a8b94
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x2c], 0
je 0x4a8bbb
mov cl, byte [edi]
mov dl, byte [eax + esi + 0x10]
dec dword [esp + 0x2c]
xor dl, cl
mov byte [ebx], dl
xor byte [eax + esi + 0x40], cl
inc eax
inc edi
inc ebx
and eax, 0xf
mov dword [esp + 0xc], eax
jne 0x4a8b90
jmp 0x4a8bc3
test eax, eax
jne 0x4a8d33
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xc00
jb 0x4a8c6c
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x1c], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x18], 0xc0
mov edx, dword [esp + 0x10]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebp
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
mov ecx, dword [edi]
xor ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ebx], ecx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0x14]
add ebx, 0x10
mov dword [ebx - 0xc], edx
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add edi, 0x10
mov dword [ebx - 8], eax
mov ecx, dword [edi - 4]
xor ecx, dword [esi + 0x1c]
sub dword [esp + 0x18], 1
mov dword [ebx - 4], ecx
jne 0x4a8c11
sub dword [esp + 0x2c], 0xc00
sub dword [esp + 0x1c], 1
jne 0x4a8bf4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
and ecx, 0xfffffff0
je 0x4a8ce9
push ecx
push edi
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x30]
add esp, 0x10
cmp dword [esp + 0x2c], 0x10
jb 0x4a8ce5
mov eax, dword [esp + 0x2c]
shr eax, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
push ecx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebp
sub dword [esp + 0x38], 0x10
mov edx, ebp
bswap edx
mov dword [esi + 0xc], edx
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
add esp, 0xc
mov dword [ebx], eax
mov ecx, dword [edi + 4]
xor ecx, dword [esi + 0x14]
add ebx, 0x10
mov dword [ebx - 0xc], ecx
mov edx, dword [edi + 8]
xor edx, dword [esi + 0x18]
add edi, 0x10
mov dword [ebx - 8], edx
mov eax, dword [edi - 4]
xor eax, dword [esi + 0x1c]
sub dword [esp + 0x20], 1
mov dword [ebx - 4], eax
jne 0x4a8c98
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x2c], 0
je 0x4a8d33
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ebp
bswap ebp
add esp, 0xc
mov dword [esi + 0xc], ebp
lea ebp, [eax + ebx]
sub edi, ebx
mov cl, byte [edi + ebp]
mov bl, byte [esi + eax + 0x10]
mov edx, dword [esp + 0x2c]
xor byte [esi + eax + 0x40], cl
xor bl, cl
dec edx
mov byte [ebp], bl
inc eax
inc ebp
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x4a8d10
mov dword [esp + 0xc], eax
mov dword [esi + 0x168], eax
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret