Function at 0xa5e475
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101d8], 0
je 0xa5e48d
call fcn.00a5e474
and dword [0x101d8], 0
mov edx, dword [ebp + 0x10]
mov eax, edx
sub eax, 0x80
je 0xa5e4c6
sub eax, 0x40
je 0xa5e4b7
sub eax, 0x40
je 0xa5e4a8
push 1
pop eax
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xe
jmp 0xa5e4d3
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xc
jmp 0xa5e4d3
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xa
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
sar edx, 5
push 4
mov eax, edi
test edx, edx
pop esi
jle 0xa5e512
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
add ecx, 2
movzx ebx, byte [ecx]
xor edx, edx
mov dh, byte [ecx - 2]
mov dl, byte [ecx - 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx + 1]
shl edx, 8
or edx, ebx
add ecx, esi
mov dword [edi], edx
add edi, esi
dec dword [ebp + 0xc]
jne 0xa5e4ee
mov ecx, dword [ebp + 0x10]
sub ecx, 0x80
je 0xa5e69b
sub ecx, 0x40
je 0xa5e612
sub ecx, 0x40
jne 0xa5e707
mov dword [ebp + 0x10], 0x4040
mov ebx, dword [eax + 0x1c]
mov edi, dword [eax + 0xc]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
mov ecx, dword [ecx*4 + 0x1840]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
movzx edx, bl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, ebx
shr edx, 0x18
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], esi
xor ecx, dword [eax]
xor ecx, dword [edx]
lea edx, [eax + 0x20]
mov dword [ebp + 0xc], edx
mov dword [edx], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
xor edi, ecx
mov dword [eax + 0x28], ecx
mov ecx, edi
mov edx, edi
shr ecx, 0x18
shr edx, 0x10
mov dword [eax + 0x2c], edi
mov ecx, dword [ecx*4 + 0x1840]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, edi
shr edx, 8
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, dword [eax + 0x14]
xor ecx, dword [eax + 0x10]
mov dword [eax + 0x30], ecx
xor edx, ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x34], edx
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, ebx
cmp dword [ebp + 0x10], 0x405c
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp + 0xc]
jl 0xa5e53a
jmp 0xa5e707
mov dword [ebp + 0x10], 0x4040
mov edi, dword [eax + 0x14]
lea ebx, [eax + 0x18]
mov ecx, edi
mov edx, edi
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
mov ecx, dword [ecx*4 + 0x1840]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, edi
shr edx, 0x18
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], esi
xor ecx, dword [eax]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebx], ecx
xor edx, ecx
mov ecx, dword [eax + 8]
mov dword [eax + 0x1c], edx
xor ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x20], ecx
xor edx, ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x24], edx
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, edi
cmp dword [ebp + 0x10], 0x4060
mov dword [eax + 0x2c], ecx
mov eax, ebx
jl 0xa5e619
jmp 0xa5e707
mov ebx, 0x4040
mov edi, dword [eax + 0xc]
mov ecx, edi
mov edx, edi
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
mov ecx, dword [ecx*4 + 0x1840]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, edi
shr edx, 0x18
shl ecx, 8
xor ecx, dword [edx*4 + 0x1840]
mov edx, dword [eax + 8]
xor ecx, dword [eax]
add eax, 0x10
xor ecx, dword [ebx]
add ebx, esi
mov dword [eax], ecx
xor ecx, dword [eax - 0xc]
xor edx, ecx
mov dword [eax + 4], ecx
xor edi, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
cmp ebx, 0x4068
jl 0xa5e6a0
cmp dword [0x1b0], 0
je 0xa5e75c
xor edx, edx
mov ecx, dword [edx + 0x1840]
shl ecx, 2
mov edi, dword [ecx + 0x3040]
mov dword [edx + 0xf1d8], edi
mov edi, dword [ecx + 0x3440]
mov dword [edx + 0xf5d8], edi
mov edi, dword [ecx + 0x3840]
mov ecx, dword [ecx + 0x3c40]
mov dword [edx + 0xf9d8], edi
mov dword [edx + 0xfdd8], ecx
add edx, esi
cmp edx, 0x400
jl 0xa5e712
and dword [0x1b0], 0
mov edi, dword [ebp + 8]
mov edx, dword [eax]
add eax, esi
push 1
lea ecx, [edi + 0x100]
mov dword [ecx], edx
mov edx, dword [eax]
add ecx, esi
add eax, esi
mov dword [ecx], edx
mov edx, dword [eax]
add ecx, esi
add eax, esi
mov dword [ecx], edx
mov edx, dword [eax]
add ecx, esi
add eax, esi
mov dword [ecx], edx
pop edx
add ecx, esi
cmp dword [edi + 0x200], edx
mov dword [ebp + 0x10], edx
jle 0xa5e8a0
mov edi, dword [eax - 0x20]
sub eax, 0x20
mov ebx, edi
mov edx, edi
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0xf1d8]
xor edx, dword [ebx*4 + 0xf5d8]
mov ebx, edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0xf9d8]
movzx edi, byte [eax]
add eax, esi
xor edx, dword [edi*4 + 0xfdd8]
mov dword [ecx], edx
mov edi, dword [eax]
mov ebx, edi
mov edx, edi
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0xf1d8]
add ecx, esi
xor edx, dword [ebx*4 + 0xf5d8]
mov ebx, edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0xf9d8]
movzx edi, byte [eax]
add eax, esi
xor edx, dword [edi*4 + 0xfdd8]
mov dword [ecx], edx
mov edi, dword [eax]
mov ebx, edi
mov edx, edi
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0xf1d8]
add ecx, esi
xor edx, dword [ebx*4 + 0xf5d8]
mov ebx, edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0xf9d8]
movzx edi, byte [eax]
add eax, esi
xor edx, dword [edi*4 + 0xfdd8]
mov dword [ecx], edx
mov edi, dword [eax]
mov ebx, edi
mov edx, edi
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0xf1d8]
add ecx, esi
xor edx, dword [ebx*4 + 0xf5d8]
mov ebx, edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0xf9d8]
movzx edi, byte [eax]
add eax, esi
xor edx, dword [edi*4 + 0xfdd8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add ecx, esi
inc dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
cmp edi, dword [edx + 0x200]
jl 0xa5e797
mov edx, dword [eax - 0x20]
sub eax, 0x20
add eax, esi
mov dword [ecx], edx
add ecx, esi
pop edi
mov edx, dword [eax]
add eax, esi
mov dword [ecx], edx
add ecx, esi
mov edx, dword [eax]
pop esi
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
xor eax, eax
pop ebx
pop ebp
ret