Function at 0x1006d3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
test ecx, ecx
je 0x1006d410
mov byte [ecx], dl
test edi, edi
jne 0x1006d41c
push 0xffffffffffffff9a
pop eax
jmp 0x1006d60e
mov edi, dword [edi + 0x7c]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x1006d414
cmp dword [edi], edx
jne 0x1006d42e
push 0xffffffffffffff9c
jmp 0x1006d416
mov eax, dword [ebp + 8]
test eax, eax
je 0x1006d60e
cmp eax, dword [edi + 0x5c]
mov dword [edi + 0x10], ebx
cmova eax, dword [edi + 0x5c]
xor ebx, ebx
mov dword [edi + 0x14], eax
cmp eax, ebx
jbe 0x1006d60c
cmp dword [edi + 8], ebx
jne 0x1006d4fd
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1006d4fd
mov ecx, dword [edi + 0x60]
mov esi, 0x4000
cmp eax, esi
push ebx
cmovb esi, eax
mov eax, dword [edi + 0x68]
add eax, dword [edi + 0x3c]
xor edx, edx
push eax
call fcn.1006c9f1
pop ecx
pop ecx
test eax, eax
jne 0x1006d5f6
push dword [edi + 0x60]
mov ecx, dword [edi]
mov edx, esi
push 1
call fcn.1006ca8b
pop ecx
pop ecx
cmp eax, 1
jne 0x1006d5f6
add dword [edi + 0x3c], esi
sub dword [edi + 0x58], esi
cmp byte [edi + 0x6c], 0
mov ecx, dword [edi]
mov dword [ebp - 0x18], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], esi
je 0x1006d4fd
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x1006d4fd
lea eax, [edi + 0x70]
mov edi, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 8]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [edi + ecx]
mov ecx, dword [ebp - 0x10]
mov dl, bl
call fcn.1006c348
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov byte [edi + ecx], bl
inc edi
cmp edi, esi
jb 0x1006d4c9
mov edi, dword [ebp - 0xc]
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 8]
cmp ecx, edx
cmova ecx, edx
test ecx, ecx
je 0x1006d530
mov eax, dword [edi + 4]
sub edx, ecx
add eax, ecx
mov bl, byte [eax - 1]
sub dword [edi + 0x5c], ecx
sub dword [edi + 0x7c], ecx
mov dword [edi + 8], edx
mov dword [edi + 4], eax
jne 0x1006d530
cmp bl, byte [edi + 0x80]
jne 0x1006d5fb
cmp dword [edi + 0x64], 0
jne 0x1006d59b
mov ebx, dword [edi + 8]
cmp dword [edi + 0x14], ebx
cmovb ebx, dword [edi + 0x14]
xor edx, edx
test ebx, ebx
je 0x1006d557
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x1006d546
mov esi, dword [edi + 0x10]
mov edx, esi
mov ecx, dword [edi + 0x50]
push ebx
call fcn.1006c25e
sub dword [edi + 0x5c], ebx
sub dword [edi + 8], ebx
sub dword [edi + 0x14], ebx
add dword [edi + 4], ebx
add dword [edi + 0x18], ebx
mov edx, dword [ebp - 4]
mov dword [edi + 0x50], eax
lea eax, [esi + ebx]
mov esi, dword [ebp - 8]
add esi, ebx
mov dword [edi + 0x10], eax
cmp dword [edi + 0x5c], 0
pop ecx
mov dword [ebp - 8], esi
jne 0x1006d5e3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1006d5e3
mov byte [ecx], 1
jmp 0x1006d5e3
mov ebx, dword [ebp - 0xc]
mov esi, dword [edi + 0x18]
mov edi, dword [edi + 0x10]
lea ecx, [ebx + 4]
call fcn.1006c5e9
mov ebx, dword [ebx + 0x18]
mov edx, edi
mov edi, dword [ebp - 0xc]
sub ebx, esi
push ebx
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x50]
call fcn.1006c25e
mov esi, dword [ebp - 8]
sub dword [edi + 0x5c], ebx
add esi, ebx
mov edx, dword [ebp - 4]
mov dword [edi + 0x50], eax
mov dword [ebp - 8], esi
pop ecx
cmp edx, 1
je 0x1006d602
cmp dword [edi + 0x5c], 0
je 0x1006d602
test edx, edx
jne 0x1006d5f2
xor ebx, ebx
cmp dword [edi + 0x14], ebx
ja 0x1006d450
test edx, edx
je 0x1006d60c
mov eax, edx
jmp 0x1006d60e
or eax, 0xffffffff
jmp 0x1006d60e
push 0xffffffffffffff96
jmp 0x1006d416
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1006d60c
mov byte [ecx], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret