Function at 0x607170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 4], ecx
cmp eax, edx
je 0x60742f
test al, 7
jne 0x60742f
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x14]
push esi
push edi
cmp edx, 1
jne 0x607285
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
cmp eax, 8
jb 0x60727c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ebx, [ecx + 6]
sub ecx, edx
add ecx, 7
shr eax, 3
lea esi, [edx - 7]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
nop
mov edx, dword [ebp + 8]
movzx eax, byte [esi + edx]
movzx edx, byte [ebx - 5]
movzx ecx, byte [ebx - 3]
shl edx, 0x10
shl eax, 0x18
or eax, edx
movzx edx, byte [ebx - 4]
shl edx, 8
or eax, edx
movzx edx, byte [ebx - 2]
or eax, ecx
movzx ecx, byte [ebx - 1]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [ebx]
shl ecx, 8
or edx, ecx
movzx ecx, byte [ebx + 1]
or edx, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
call fcn.006068d0
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add esi, 8
mov dword [ebp - 0x18], edx
mov byte [esi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
xor eax, edi
mov edi, dword [ebp - 0x14]
shr edx, 0x10
mov byte [esi + 4], dl
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov byte [esi + 1], cl
shr eax, 0x18
add ebx, 8
dec dword [ebp + 0xc]
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x6071d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edx, 2
jne 0x60736b
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
cmp eax, 8
jb 0x60727c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edi, [edx + 6]
sub edx, ebx
add edx, 7
shr eax, 3
lea esi, [ebx - 7]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
jmp 0x6072c3
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
movzx ebx, byte [esi + eax]
movzx eax, byte [edi - 5]
movzx edx, byte [edi - 1]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [edi - 4]
shl eax, 8
or ebx, eax
movzx eax, byte [edi - 3]
or ebx, eax
movzx eax, byte [edi - 2]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [edi]
shl edx, 8
or eax, edx
movzx edx, byte [edi + 1]
or eax, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00606550
mov eax, dword [ebp - 8]
mov edx, eax
xor eax, dword [ebp - 0x10]
add esi, 8
mov ecx, ebx
xor ebx, dword [ebp - 0x14]
mov byte [esi + 6], al
mov dword [ebp - 0x14], ecx
mov ecx, eax
mov dword [ebp - 0x10], edx
mov edx, eax
shr ecx, 8
mov byte [esi + 5], cl
shr eax, 0x18
shr edx, 0x10
mov byte [esi + 4], dl
mov byte [esi + 3], al
mov eax, ebx
mov byte [esi + 2], bl
mov ecx, ebx
shr eax, 8
shr ecx, 0x10
mov byte [esi + 1], al
shr ebx, 0x18
add edi, 8
dec dword [ebp + 0xc]
mov byte [esi], cl
mov byte [esi - 1], bl
jne 0x6072c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 8
jb 0x60727c
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ebx, [edx + 6]
sub edx, edi
add edx, 7
shr eax, 3
lea esi, [edi - 7]
mov dword [ebp + 8], edx
mov edi, eax
jmp 0x607393
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + esi]
movzx edx, byte [ebx - 5]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx - 4]
shl edx, 8
or eax, edx
movzx edx, byte [ebx - 3]
or eax, edx
movzx edx, byte [ebx - 1]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx - 2]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 1]
or eax, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.006068d0
mov eax, dword [ebp - 8]
add esi, 8
mov byte [esi + 6], al
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [esi + 5], cl
shr edx, 0x10
mov byte [esi + 4], dl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov byte [esi + 1], cl
shr eax, 0x18
add ebx, 8
dec edi
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x607390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x69ba50
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x663968
call fcn.00551b4a
int3