Function at 0x1006d180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 8]
lea ecx, [ebx + 8]
push esi
push edi
mov esi, dword [ebx]
mov dword [ebp - 4], esi
test al, al
jne 0x1006d436
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1006d1ac
movzx ecx, word [edx + 8]
jmp 0x1006d1ae
xor ecx, ecx
mov al, byte [ebx + 9]
mov dword [ebp - 8], ecx
cmp al, 8
jae 0x1006d35c
movzx eax, al
sub eax, 1
je 0x1006d2d7
sub eax, 1
je 0x1006d25a
sub eax, 2
jne 0x1006d34b
mov edx, dword [ebp + 0xc]
mov eax, ecx
shl eax, 4
add eax, ecx
movzx ecx, ax
lea eax, [esi - 1]
mov dword [ebp - 8], ecx
mov edi, eax
lea ecx, [edx - 1]
shr edi, 1
add ecx, esi
and eax, 1
mov dword [ebp - 0x14], ecx
add edi, edx
shl eax, 2
mov ecx, 4
sub ecx, eax
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x1006d348
mov dword [ebp - 0xc], esi
mov ebx, ecx
mov esi, dword [ebp - 0x14]
nop dword [eax + eax]
mov dl, byte [edi]
lea esi, [esi - 1]
mov cl, bl
shr dl, cl
mov ecx, 4
mov al, dl
shl dl, 4
and al, 0xf
xor al, dl
cmp ebx, 4
mov byte [esi + 1], al
lea eax, [edi - 1]
cmovne eax, edi
mov edi, eax
xor eax, eax
cmp ebx, 4
cmovne eax, ecx
sub dword [ebp - 0xc], 1
mov ebx, eax
jne 0x1006d220
jmp 0x1006d342
imul eax, ecx, 0x55
movzx edx, ax
lea eax, [esi - 1]
mov dword [ebp - 8], edx
mov edi, eax
mov edx, dword [ebp + 0xc]
and eax, 3
shr edi, 2
add edi, edx
lea ecx, [edx - 1]
add ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, 3
sub ecx, eax
add ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x1006d348
mov dword [ebp - 0xc], esi
mov ebx, ecx
mov esi, dword [ebp - 0x10]
mov dl, byte [edi]
lea esi, [esi - 1]
mov cl, bl
shr dl, cl
and dl, 3
mov al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
cmp ebx, 6
mov byte [esi + 1], al
lea eax, [edi - 1]
cmovne eax, edi
xor ecx, ecx
cmp ebx, 6
mov edi, eax
lea eax, [ebx + 2]
cmovne ecx, eax
sub dword [ebp - 0xc], 1
mov ebx, ecx
jne 0x1006d297
jmp 0x1006d342
imul eax, ecx, 0xff
mov ecx, dword [ebp + 0xc]
movzx eax, ax
mov dword [ebp - 8], eax
lea eax, [esi - 1]
mov edi, eax
and eax, 7
shr edi, 3
add edi, ecx
dec ecx
add ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x1006d34b
mov ebx, ecx
nop dword [eax]
mov al, byte [edi]
mov cl, bl
shr al, cl
mov edx, ebx
mov ecx, dword [ebp - 0xc]
and al, 1
neg al
sbb al, al
mov byte [ecx], al
dec ecx
cmp ebx, 7
mov dword [ebp - 0xc], ecx
lea eax, [edi - 1]
cmovne eax, edi
xor ebx, ebx
cmp edx, 7
mov edi, eax
lea eax, [edx + 1]
cmovne ebx, eax
sub esi, 1
jne 0x1006d310
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
lea ecx, [ebx + 4]
mov byte [ebx + 9], 8
mov byte [ebx + 0xb], 8
mov al, 8
mov dword [ecx], esi
jmp 0x1006d35f
lea ecx, [ebx + 4]
test edx, edx
je 0x1006d5c6
cmp al, 8
jne 0x1006d3a5
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
add edx, esi
lea edi, [eax - 1]
lea edi, [edi + esi*2]
test esi, esi
je 0x1006d414
mov ebx, esi
movzx eax, byte [edx]
lea edi, [edi - 2]
sub ax, word [ebp - 8]
lea edx, [edx - 1]
neg ax
sbb al, al
mov byte [edi + 2], al
mov al, byte [edx + 1]
mov byte [edi + 1], al
sub ebx, 1
jne 0x1006d383
jmp 0x1006d40e
cmp al, 0x10
jne 0x1006d414
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edi, [edx - 1]
add edi, eax
lea eax, [eax*2 - 1]
add eax, edx
mov dword [ebp - 0x14], eax
test esi, esi
je 0x1006d414
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
movzx ecx, ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx eax, byte [edi + 1]
lea ebx, [ebx - 4]
shl edx, 8
lea edi, [edi - 1]
or edx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x10]
neg edx
sbb dl, dl
sub dword [ebp - 0xc], 1
mov byte [ebx + 4], dl
mov byte [ebx + 3], dl
movzx eax, byte [edi + 2]
mov byte [ebx + 2], al
movzx eax, byte [edi + 1]
mov byte [ebx + 1], al
jne 0x1006d3d2
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 4]
mov al, byte [ebx + 9]
add al, al
mov byte [ebx + 8], 4
mov byte [ebx + 0xb], al
movzx eax, al
imul eax, esi
pop edi
pop esi
mov byte [ebx + 0xa], 2
pop ebx
shr eax, 3
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x1006d5c6
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1006d5c6
mov dl, byte [ebx + 9]
lea eax, [ebx + 9]
mov dword [ebp - 8], eax
cmp dl, 8
jne 0x1006d4cf
mov ecx, dword [ebp + 0xc]
lea edx, [ecx - 1]
add edx, dword [ebx + 4]
lea ecx, [ecx + esi*4]
dec ecx
test esi, esi
je 0x1006d4c4
mov ebx, esi
nop word [eax + eax]
movzx eax, byte [edx - 2]
cmp ax, word [edi + 2]
jne 0x1006d491
movzx eax, byte [edx - 1]
cmp ax, word [edi + 4]
jne 0x1006d491
movzx eax, byte [edx]
cmp ax, word [edi + 6]
jne 0x1006d491
xor al, al
jmp 0x1006d493
or al, 0xff
mov byte [ecx], al
or esi, 0xffffffff
movzx eax, byte [edx]
mov dword [ebp - 0xc], ecx
mov byte [esi + ecx], al
or eax, esi
add ecx, eax
movzx eax, byte [edx - 1]
mov byte [ecx - 1], al
movzx eax, byte [edx - 2]
sub edx, 3
mov byte [ecx - 2], al
sub ecx, 3
sub ebx, 1
jne 0x1006d470
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
lea eax, [ebx + 9]
lea ecx, [ebx + 8]
jmp 0x1006d5ab
cmp dl, 0x10
jne 0x1006d5ab
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea esi, [ecx - 1]
add esi, dword [ebx + 4]
lea edx, [ecx - 1]
lea ecx, [ebx + 8]
mov ebx, dword [ebp - 8]
mov dword [ebp - 8], ebx
lea edx, [edx + eax*8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1006d5a6
mov dword [ebp - 8], eax
movzx ecx, byte [esi - 5]
movzx eax, byte [esi - 4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x14], edx
movzx eax, word [edi + 2]
cmp ecx, eax
jne 0x1006d547
movzx ecx, byte [esi - 3]
movzx eax, byte [esi - 2]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 4]
cmp ecx, eax
jne 0x1006d547
movzx ecx, byte [esi - 1]
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 6]
cmp ecx, eax
jne 0x1006d547
dec edx
xor al, al
jmp 0x1006d54a
dec edx
or al, 0xff
mov ebx, dword [ebp - 0x14]
mov ecx, edx
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebx], al
mov byte [edx], al
movzx eax, byte [esi]
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], al
add edx, ecx
movzx eax, byte [esi - 1]
mov byte [edx - 1], al
movzx eax, byte [esi - 2]
mov byte [edx - 2], al
movzx eax, byte [esi - 3]
mov byte [edx - 3], al
movzx eax, byte [esi - 4]
mov byte [edx - 4], al
movzx eax, byte [esi - 5]
sub esi, 6
mov byte [edx - 5], al
sub edx, 6
sub dword [ebp - 8], 1
jne 0x1006d501
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
lea ecx, [ebx + 8]
lea eax, [ebx + 9]
jmp 0x1006d5ab
mov esi, eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
shl al, 2
mov byte [ebx + 0xb], al
movzx eax, al
imul eax, esi
mov byte [ecx], 6
mov byte [ebx + 0xa], 4
shr eax, 3
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret