Function at 0x1001a536
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1010c070]
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.10096946
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.10096946
mov byte [ebp + esi - 0xc], al
inc esi
sub edi, 1
jne 0x1001a573
xor eax, eax
cmp eax, 8
jae 0x1001a732
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x1001a587
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 0x1001a5c7
call fcn.10096946
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0xc], al
inc esi
inc ecx
cmp esi, 8
mov dword [ebp - 0x18], ecx
jne 0x1001a61c
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 0x1001a5d0
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3f1
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 0x1001a5f2
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 0x1001a5ae
lea edx, [ebp - 0x14]
sub edx, ebx
push 0x21
mov dword [ebp - 0x18], edx
pop eax
cmp esi, 8
jge 0x1001a649
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 0x1001a69e
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 0x1001a652
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3f1
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 0x1001a674
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 0x1001a62c
lea edx, [ebp - 0x14]
sub edx, ebx
inc eax
mov dword [ebp - 0x1c], edx
cmp esi, 8
jge 0x1001a6c7
mov eax, esi
inc esi
cmp eax, 8
jae 0x1001a732
mov byte [ebp + eax - 0xc], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp esi, 8
mov dword [ebp - 0x2c], eax
jne 0x1001a71c
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 0x1001a6d0
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a3f1
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 0x1001a6f2
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 0x1001a6ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
call fcn.1008b3c9
int3