Function at 0x1007eee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10084230
push ebx
push esi
mov esi, dword [esp + 0x28]
mov bl, byte [esi]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x28], bl
test bl, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
jne 0x1007ef14
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
mov al, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov eax, edx
mov dword [esp + 0x10], edx
cmp eax, 0xf
jae 0x1007ef43
xor ebx, ebx
mov bl, byte [eax + esi]
mov byte [eax + esi], 0
or ecx, ebx
shl ecx, 8
inc eax
cmp eax, 0xf
jb 0x1007ef2f
mov ebx, dword [esp + 0x34]
xor eax, eax
mov al, byte [esi + 0xf]
mov byte [esi + 0xf], 1
or ecx, eax
cmp ecx, ebx
je 0x1007ef5f
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret
push ebp
cmp ebx, 0x10
push edi
jb 0x1007f0f9
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, ebx
shr eax, 4
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [esp + 0x20]
mov cl, byte [esi + 0xf]
add esp, 0xc
inc cl
mov eax, 7
mov byte [esi + 0xf], cl
jne 0x1007efad
test eax, eax
je 0x1007efad
mov cl, byte [eax + esi + 7]
dec eax
inc cl
mov byte [eax + esi + 8], cl
je 0x1007ef9c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [ebp + 4]
mov dword [edi], eax
xor ecx, edx
lea eax, [esi + 0x10]
mov dword [edi + 4], ecx
mov edx, dword [edi]
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [ebp + 0xc]
xor ecx, dword [esp + 0x28]
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
mov edx, dword [edi + 8]
mov ecx, dword [esi + 0x18]
xor ecx, edx
mov dword [esi + 0x18], ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x1c]
xor edx, ecx
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x10]
push edx
push eax
push eax
call dword [esp + 0x20]
mov eax, dword [esp + 0x48]
add esp, 0xc
add ebp, 0x10
add edi, 0x10
sub ebx, 0x10
dec eax
mov dword [esp + 0x3c], eax
jne 0x1007ef7b
mov edx, dword [esp + 0x18]
test ebx, ebx
je 0x1007f088
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call dword [esp + 0x20]
add esp, 0xc
xor eax, eax
test ebx, ebx
jbe 0x1007f073
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x1c]
sub ebp, edx
sub edi, ecx
lea edx, [esp + eax + 0x1c]
mov cl, byte [edx + ebp]
xor cl, byte [edx]
mov byte [edi + edx], cl
mov dl, byte [esi + eax + 0x10]
xor dl, cl
mov byte [esi + eax + 0x10], dl
inc eax
cmp eax, ebx
jb 0x1007f058
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp edx, 0x10
jae 0x1007f0a7
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
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]
pop edi
mov byte [esi], al
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x1007f030