Function at 0x1001a4f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 5
pop edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0x21
call fcn.1009643f
and al, 0xfd
or al, 5
mov byte [ebp - 0xc], al
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov esi, eax
call fcn.1009643f
mov byte [ebp + esi - 0xc], al
inc esi
sub edi, 1
jne 0x1001a533
xor eax, eax
cmp eax, 8
jae 0x1001a6f2
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x1001a547
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
and dword [eax], 0
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x24], eax
cmp esi, 8
jge 0x1001a587
call fcn.1009643f
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0xc], al
inc esi
inc ecx
cmp esi, 8
mov dword [ebp - 0x18], ecx
jne 0x1001a5dc
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x1001a590
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3b1
mov esi, dword [ebp - 0x24]
pop ecx
push 8
mov ecx, ebx
pop edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001a5b2
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp - 8]
mov ebx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
add dword [eax], 8
sub dword [ebp - 0x24], 8
cmp ecx, 2
jle 0x1001a56e
lea edx, [ebp - 0x14]
sub edx, ebx
push 0x21
mov dword [ebp - 0x18], edx
pop eax
cmp esi, 8
jge 0x1001a609
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx]
mov byte [ebp + esi - 0xc], al
inc esi
mov eax, dword [ebp - 0x28]
inc ecx
dec eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
cmp esi, 8
jne 0x1001a65e
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x1001a612
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3b1
mov edx, dword [ebp - 0x18]
pop ecx
push 8
mov ecx, ebx
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x1001a634
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
add dword [eax], 8
sub edx, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
test eax, eax
jne 0x1001a5ec
lea edx, [ebp - 0x14]
sub edx, ebx
inc eax
mov dword [ebp - 0x1c], edx
cmp esi, 8
jge 0x1001a687
mov eax, esi
inc esi
cmp eax, 8
jae 0x1001a6f2
mov byte [ebp + eax - 0xc], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp esi, 8
mov dword [ebp - 0x2c], eax
jne 0x1001a6dc
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x1001a690
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3b1
mov edx, dword [ebp - 0x1c]
pop ecx
push 8
mov ecx, ebx
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x1001a6b2
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
add dword [eax], 8
sub edx, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
cmp eax, 7
jle 0x1001a66b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
call fcn.1008aed6
int3