Function at 0x1001e26e
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe4
push esi
mov esi, eax
xor eax, eax
cmp byte [ebp + 0x7c], al
push edi
je 0x1001e2c8
cmp byte [esi + 0x23], al
je 0x1001e2af
test byte [ebp + 0x78], 7
jbe 0x1001e292
inc eax
jmp 0x1001e298
cmp byte [esi + 0x22], al
setne al
mov edi, dword [ebp + 0x78]
shr edi, 3
add edi, eax
lea edi, [edi*8 + 8]
lea eax, [edi - 8]
mov dword [ebp + 0x5c], eax
jmp 0x1001e2dc
test byte [ebp + 0x78], 7
jbe 0x1001e2b8
inc eax
jmp 0x1001e2be
cmp byte [esi + 0x22], al
setne al
mov edi, dword [ebp + 0x78]
shr edi, 3
add edi, eax
jmp 0x1001e2d6
cmp byte [esi + 0x23], al
mov edi, dword [ebp + 0x78]
setne al
shr edi, 3
sub edi, eax
shl edi, 3
mov dword [ebp + 0x5c], edi
cmp dword [esi + 0x18], edi
jae 0x1001e307
cmp byte [esi + 0x20], 0
jne 0x1001e2ee
xor al, al
jmp 0x1001e55c
call fcn.1001e247
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x14], eax
mov byte [eax + edi], 0
pop ecx
mov dword [esi + 0x18], edi
lea eax, [ebp - 0x78]
push eax
lea eax, [esi + 4]
push eax
mov dword [esi + 0x1c], edi
call fcn.1001e649
cmp dword [esi + 0x24], 1
pop ecx
pop ecx
jbe 0x1001e32e
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.1001e649
pop ecx
pop ecx
cmp byte [esi + 0x23], 0
push ebx
mov ebx, dword [esi + 0x14]
mov dword [ebp + 0x50], ebx
je 0x1001e3c8
cmp byte [ebp + 0x7c], 0
je 0x1001e3c0
and dword [ebp + 0x68], 0
call sub.MSVCRT.dll_rand
sar eax, 4
and eax, 0x800000ff
jns 0x1001e35f
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp + 0x68]
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 8
mov byte [ebp + ecx + 0x54], al
jb 0x1001e349
xor eax, eax
cmp byte [ebp + 0x7c], 1
sete al
and dword [ebp + 0x68], 0
cmp dword [esi + 0x24], 0
mov dword [ebp + 0x64], eax
jbe 0x1001e3b8
mov eax, dword [ebp + 0x68]
push dword [ebp + 0x64]
and eax, 1
imul eax, eax, 0x60
lea ecx, [ebp + 0x54]
push ebx
lea eax, [ebp + eax - 0x78]
push ecx
call fcn.1001e565
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x64], eax
sete al
inc dword [ebp + 0x68]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x68]
cmp eax, dword [esi + 0x24]
jb 0x1001e385
add ebx, 8
mov dword [ebp + 0x50], ebx
jmp 0x1001e3c8
add dword [ebp + 0x74], 8
sub dword [ebp + 0x78], 8
mov eax, dword [ebp + 0x78]
and dword [ebp + 0x68], 0
cmp dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], eax
jbe 0x1001e507
xor ecx, ecx
cmp byte [ebp + 0x7c], 1
mov dword [ebp + 0x78], ebx
sete cl
mov dword [ebp + 0x48], ecx
mov ecx, dword [ebp + 0x74]
sub ecx, ebx
mov dword [ebp + 0x4c], ecx
jmp 0x1001e3fb
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x4c]
test eax, eax
push 8
jne 0x1001e40e
lea eax, [ebp + 0x54]
push 8
push eax
call sub.MSVCRT.dll_memset
jmp 0x1001e44f
pop edx
cmp eax, edx
jae 0x1001e43f
mov ecx, edx
sub ecx, eax
push ecx
sub edx, eax
push edx
lea eax, [ebp + eax + 0x54]
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x78]
push dword [ebp + 0x60]
mov eax, dword [ebp + 0x4c]
add eax, ecx
push eax
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
jmp 0x1001e452
mov eax, dword [ebp + 0x78]
push edx
add ecx, eax
push ecx
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [esi + 0x23], 0
je 0x1001e47b
cmp byte [ebp + 0x7c], 0
je 0x1001e47b
mov eax, dword [ebp + 0x68]
lea ebx, [eax + ebx - 8]
lea eax, [ebp + 0x54]
xor ecx, ecx
sub ebx, eax
lea eax, [ebp + ecx + 0x54]
mov dl, byte [ebx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 8
jb 0x1001e46c
mov eax, dword [ebp + 0x48]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
mov dword [ebp + 0x64], eax
jbe 0x1001e4c5
push dword [ebp + 0x64]
mov eax, ebx
push dword [ebp + 0x78]
and eax, 1
imul eax, eax, 0x60
lea ecx, [ebp + 0x54]
lea eax, [ebp + eax - 0x78]
push ecx
call fcn.1001e565
xor eax, eax
cmp dword [ebp + 0x64], eax
push 8
push dword [ebp + 0x78]
sete al
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x24]
jb 0x1001e488
cmp byte [esi + 0x23], 0
je 0x1001e4ec
cmp byte [ebp + 0x7c], 0
jne 0x1001e4ec
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x68]
lea ecx, [ecx + eax - 8]
mov eax, dword [ebp + 0x78]
push 8
sub ecx, eax
pop edx
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x1001e4e3
add dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x68]
sub dword [ebp + 0x60], 8
add dword [ebp + 0x78], 8
cmp eax, dword [ebp + 0x5c]
mov ebx, dword [ebp + 0x50]
jb 0x1001e3f5
cmp byte [ebp + 0x7c], 0
jne 0x1001e559
cmp byte [esi + 0x22], 0
je 0x1001e559
mov cl, byte [ebx + edi - 1]
cmp cl, 8
ja 0x1001e559
movzx ecx, cl
mov dword [ebp + 0x7c], edi
sub dword [ebp + 0x7c], ecx
lea eax, [edi - 2]
mov dword [ebp + 0x78], ecx
jmp 0x1001e537
mov dl, byte [ebx + edi - 1]
cmp byte [eax + ebx], dl
jne 0x1001e559
dec eax
cmp eax, dword [ebp + 0x7c]
ja 0x1001e52d
cmp byte [ebx + edi - 1], 0
je 0x1001e559
push ecx
sub ebx, ecx
push 0
add ebx, edi
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x78]
add esp, 0xc
sub dword [esi + 0x1c], eax
mov al, 1
pop ebx
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc