Function at 0x1006feb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xac
call fcn.10071fa0
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
push ebp
mov dword [esp + 0xc], eax
xor ebp, ebp
mov eax, dword [esp + 0xcc]
push esi
mov dword [esp + 0x30], eax
or esi, 0xffffffff
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x20], edi
test eax, eax
jne 0x1006ff39
call fcn.1006e620
mov dword [esp + 0x18], eax
test edi, edi
jne 0x1006ff41
mov dword [esp + 0x20], eax
push eax
call fcn.10061c60
add esp, 4
mov edi, eax
cmp dword [esp + 0xc4], ebp
jle 0x100701d4
test ebx, ebx
jle 0x100701d4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jl 0x10070185
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x10070185
mov ebx, ecx
push 0x9b
sub ebx, edi
dec ebx
push 0x100e48d0
push ebx
call fcn.1005dfe0
push 0x9c
push 0x100e48d0
push dword [esp + 0x28]
mov ebp, eax
call fcn.1005dfe0
add esp, 0x18
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x1007016e
test eax, eax
je 0x1007016e
push dword [esp + 0x14]
push 0
push eax
call fcn.10097030
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
push dword [esp + 0x38]
sub eax, ecx
add eax, dword [esp + 0x30]
push eax
call fcn.10096ab0
mov ecx, dword [esp + 0x34]
push dword [esp + 0x38]
push ebx
movzx eax, byte [ecx]
dec eax
shr eax, 0x1f
neg eax
mov dword [esp + 0x30], eax
lea eax, [ecx + 1]
mov dword [esp + 0x48], eax
lea eax, [ecx + 1]
add eax, edi
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.1006fa80
add esp, 0x2c
test eax, eax
jne 0x100701a1
xor edx, edx
test edi, edi
jle 0x10070043
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x38]
sub esi, eax
nop
lea ecx, [esp + 0x38]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x10070030
or esi, 0xffffffff
push dword [esp + 0x20]
lea eax, [esp + 0x3c]
push edi
push eax
push ebx
push ebp
call fcn.1006fa80
add esp, 0x14
test eax, eax
jne 0x100701a1
test ebx, ebx
jle 0x10070081
mov esi, dword [esp + 0x30]
mov ecx, ebp
sub esi, ebp
mov edx, ebx
lea ecx, [ecx]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x10070070
or esi, 0xffffffff
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x80]
push 0
push eax
push dword [esp + 0xe8]
push dword [esp + 0x48]
call fcn.10063820
add esp, 0x18
test eax, eax
je 0x100701a1
push edi
lea eax, [esp + 0x7c]
push eax
push ebp
call fcn.1005a150
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp edi, ebx
jge 0x1007012f
mov edi, edi
movzx esi, byte [edi + ebp]
not ecx
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [esp + 0x24]
or eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
or ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [esi - 1]
shr eax, 0x1f
neg eax
mov dword [esp + 0x18], ecx
or eax, ecx
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x100700e0
test edx, ecx
je 0x10070189
mov eax, dword [esp + 0x24]
mov esi, ebx
inc eax
sub esi, eax
cmp dword [esp + 0xc4], esi
jge 0x1007015c
push 0
push 0
push 0x6d
push 0xa1
push 4
call fcn.1005ece0
add esp, 0x14
jmp 0x10070189
push esi
add eax, ebp
push eax
push dword [esp + 0x34]
call fcn.10096ab0
add esp, 0xc
jmp 0x100701a1
push 0
push 0
push 0x41
push 0xa1
push 4
call fcn.1005ece0
add esp, 0x14
jmp 0x100701a1
mov ebx, dword [esp + 0x2c]
push 0
push 0
push 0x79
push 0xa1
push 4
call fcn.1005ece0
add esp, 0x14
or esi, 0xffffffff
test ebp, ebp
je 0x100701b5
push ebx
push ebp
call fcn.10061860
push ebp
call fcn.1005df60
add esp, 0xc
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100701d0
push dword [esp + 0x14]
push ebx
call fcn.10061860
push ebx
call fcn.1005df60
add esp, 0xc
mov eax, esi
jmp 0x100701d7
or eax, 0xffffffff
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10071699
add esp, 0xac
ret