Function at 0x1006df90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
push esi
mov esi, dword [ebp + 8]
sub eax, esi
and eax, 0xfffffff8
push edi
cmp eax, 0x100
jle 0x1006e01d
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x1006e080
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.1006d4a0
mov edx, dword [ebp - 0x14]
mov eax, edi
sar eax, 2
mov ecx, ebx
sar edi, 1
add esp, 0x10
add edi, eax
sub ecx, edx
mov eax, dword [ebp - 0x18]
and ecx, 0xfffffff8
sub eax, esi
and eax, 0xfffffff8
cmp eax, ecx
mov eax, dword [ebp + 0x14]
push eax
push edi
jge 0x1006dfff
mov eax, dword [ebp - 0x18]
push eax
push esi
call fcn.1006df90
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], esi
jmp 0x1006e00c
push ebx
push edx
call fcn.1006df90
mov ebx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ebx
mov eax, ebx
add esp, 0x10
sub eax, esi
and eax, 0xfffffff8
cmp eax, 0x100
jg 0x1006dfb0
cmp esi, ebx
je 0x1006e238
lea edi, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x1006e238
mov dword [ebp - 0xc], esi
push dword [esi + 4]
mov ecx, dword [edi + 4]
mov ebx, edi
push dword [esi]
mov eax, dword [edi]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.10071a20
add esp, 0x10
test al, al
je 0x1006e1c8
mov ecx, edi
mov eax, edi
sub ecx, esi
push ecx
sub eax, ecx
add eax, 8
push esi
push eax
call fcn.100ce860
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x1006e225
sub ebx, esi
mov ecx, ebx
mov dword [ebp + 0xc], ebx
sar ecx, 3
mov edx, ecx
mov dword [ebp - 8], ecx
sar edx, 1
test edx, edx
jle 0x1006e170
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [esi + edx*8 - 8]
dec edx
mov dword [ebp - 4], eax
mov ebx, edx
mov dword [ebp + 8], edx
mov edi, edx
mov eax, dword [esi + edx*8 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp edx, eax
jge 0x1006e101
add edi, edi
push dword [esi + edi*8 + 0xc]
push dword [esi + edi*8 + 8]
push dword [esi + edi*8 + 0x14]
push dword [esi + edi*8 + 0x10]
call fcn.10071a20
movzx eax, al
add esp, 0x10
xor eax, 1
inc eax
add edi, eax
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edi, eax
jl 0x1006e0c1
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ebx, eax
jne 0x1006e11c
test cl, 1
jne 0x1006e11c
mov eax, dword [esi + ecx*8 - 8]
mov ecx, dword [esi + ecx*8 - 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, dword [ebp - 0x14]
cmp edx, ebx
jge 0x1006e155
push dword [ebp - 0x10]
lea edi, [ebx - 1]
push dword [ebp - 4]
sar edi, 1
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.10071a20
mov edx, dword [ebp + 8]
add esp, 0x10
test al, al
je 0x1006e155
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edx, edi
jl 0x1006e120
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + ebx*8 + 4], eax
test edx, edx
jg 0x1006e0a4
mov ebx, dword [ebp + 0xc]
cmp ecx, 2
jl 0x1006e238
nop dword [eax]
mov eax, dword [esi + ebx - 8]
mov ecx, dword [esi + ebx - 4]
push dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [esi + ebx - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx - 8]
mov dword [esi + ebx - 4], ecx
sar eax, 3
push eax
push 0
push esi
call fcn.1006d8b0
sub ebx, 8
add esp, 0x14
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0x10
jge 0x1006e180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edi, eax
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10071a20
add esp, 0x10
test al, al
je 0x1006e217
mov esi, dword [ebp - 4]
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ebx, edi
push dword [edi - 4]
sub edi, 8
push dword [edi]
push dword [ebp - 8]
push esi
call fcn.10071a20
add esp, 0x10
test al, al
jne 0x1006e1f0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
add dword [ebp - 0xc], 8
add edi, 8
mov dword [ebp - 0x10], edi
cmp edi, dword [ebp + 0xc]
jne 0x1006e036
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret