Function at 0x1007ec60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10084230
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov bl, byte [esi]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x2c], bl
test bl, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
jne 0x1007eca7
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x20]
add esp, 0xc
add ecx, 1
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
adc eax, 0
mov dword [esi + 0x24], eax
mov al, bl
mov ebp, 0xf
and eax, 7
xor ecx, ecx
sub ebp, eax
mov byte [esi], al
mov eax, ebp
mov dword [esp + 0x14], ebp
cmp eax, 0xf
jae 0x1007ecd6
xor edx, edx
mov dl, byte [eax + esi]
mov byte [eax + esi], 0
or ecx, edx
shl ecx, 8
inc eax
cmp eax, 0xf
jb 0x1007ecc2
mov ebx, dword [esp + 0x38]
xor eax, eax
mov al, byte [esi + 0xf]
mov byte [esi + 0xf], 1
or ecx, eax
cmp ecx, ebx
je 0x1007ecf3
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret
mov edx, dword [esi + 0x20]
lea ecx, [ebx + 0xf]
or ecx, 8
shr ecx, 3
add edx, ecx
mov dword [esi + 0x20], edx
mov ecx, dword [esi + 0x24]
adc ecx, 0
mov eax, ecx
mov dword [esi + 0x24], ecx
cmp eax, 0x20000000
jb 0x1007ed2b
ja 0x1007ed1f
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x1007ed2b
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x1c
ret
cmp ebx, 0x10
push edi
jb 0x1007eed5
mov edi, dword [esp + 0x34]
mov eax, ebx
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x3c], eax
mov edx, dword [edi]
mov eax, dword [ebp]
xor eax, edx
mov edx, dword [esi + 0x18]
mov dword [ebp], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
xor ecx, eax
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 8]
xor edx, ecx
mov dword [esi + 0x18], edx
mov edx, dword [edi + 0xc]
mov eax, dword [esi + 0x1c]
xor eax, edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x10]
push eax
push ebp
push ebp
call dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push edx
push esi
call dword [esp + 0x2c]
mov al, byte [esi + 0xf]
add esp, 0x18
inc al
mov ecx, 7
mov byte [esi + 0xf], al
jne 0x1007edad
test ecx, ecx
je 0x1007edad
mov al, byte [ecx + esi + 7]
dec ecx
inc al
mov byte [ecx + esi + 8], al
je 0x1007ed9c
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [edi + 4]
add edi, 0x10
xor edx, eax
mov eax, dword [esp + 0x38]
sub ebx, 0x10
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [edi - 8]
mov edx, dword [esp + 0x24]
xor ecx, edx
mov edx, dword [edi - 4]
xor edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x1007ed45
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x1007ee64
xor eax, eax
test ebx, ebx
jbe 0x1007ee19
mov cl, byte [eax + edi]
mov dl, byte [esi + eax + 0x10]
xor dl, cl
mov byte [esi + eax + 0x10], dl
inc eax
cmp eax, ebx
jb 0x1007ee07
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call ebp
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jbe 0x1007ee60
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1c]
sub edi, edx
sub ebp, eax
lea eax, [esp + ecx + 0x1c]
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, ebx
mov byte [eax + ebp], dl
jb 0x1007ee4f
mov ebp, dword [esp + 0x18]
cmp ebp, 0x10
jae 0x1007ee83
mov ecx, 0x10
lea edi, [esi + ebp]
sub ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
xor ebx, edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x10], ebx
mov edi, dword [esi + 0x14]
xor edx, ecx
xor edi, eax
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
add esp, 0xc
xor eax, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x30]
mov byte [esi], al
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x34]
jmp 0x1007edfd