Function at 0x1001a596
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1010e070]
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.1009758f
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.1009758f
mov byte [ebp + esi - 0xc], al
inc esi
sub edi, 1
jne 0x1001a5d3
xor eax, eax
cmp eax, 8
jae 0x1001a792
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x1001a5e7
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 0x1001a627
call fcn.1009758f
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0xc], al
inc esi
inc ecx
cmp esi, 8
mov dword [ebp - 0x18], ecx
jne 0x1001a67c
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 0x1001a630
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a451
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 0x1001a652
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 0x1001a60e
lea edx, [ebp - 0x14]
sub edx, ebx
push 0x21
mov dword [ebp - 0x18], edx
pop eax
cmp esi, 8
jge 0x1001a6a9
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 0x1001a6fe
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 0x1001a6b2
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a451
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 0x1001a6d4
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 0x1001a68c
lea edx, [ebp - 0x14]
sub edx, ebx
inc eax
mov dword [ebp - 0x1c], edx
cmp esi, 8
jge 0x1001a727
mov eax, esi
inc esi
cmp eax, 8
jae 0x1001a792
mov byte [ebp + eax - 0xc], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp esi, 8
mov dword [ebp - 0x2c], eax
jne 0x1001a77c
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 0x1001a730
push ebx
lea ecx, [ebp - 0xc]
call fcn.1001a451
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 0x1001a752
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 0x1001a70b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
call fcn.1008c026
int3