Function at 0x609d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov ebx, dword [eax]
test ebx, ebx
je 0x609d5b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x609d5b
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
jmp 0x609d34
test esi, esi
je 0x609d4f
add edx, 1
movzx eax, byte [edi + ebx]
add ecx, 1
add ebx, 1
xor al, byte [edx - 1]
sub esi, 1
mov byte [ecx - 1], al
and ebx, 0xf
jne 0x609d30
mov dword [ebp + 8], edx
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], esi
cmp dword [ebp + 0x10], 0xf
jbe 0x60a383
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
sub eax, 0x10
mov dword [esp + 0x4c], ebx
mov ebx, dword [ebp + 8]
and eax, 0xfffffff0
lea esi, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
add eax, esi
mov dword [esp + 0x14], eax
lea esi, cs:[esi]
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebp + 0x24]
movzx eax, byte [edi + 0xf]
movzx edx, byte [edi + 0xe]
add eax, 1
shr eax, 8
add eax, edx
movzx edx, byte [edi + 0xd]
mov dword [esp + 0x48], eax
shr eax, 8
lea ecx, [edx + eax]
movzx edx, byte [edi + 0xc]
mov esi, ecx
mov dword [esp + 0x44], ecx
shr esi, 8
add edx, esi
mov dword [esp + 0x40], edx
shr edx, 8
mov eax, edx
movzx edx, byte [edi + 0xb]
lea esi, [edx + eax]
movzx edx, byte [edi + 0xa]
mov dword [esp + 0x3c], esi
shr esi, 8
lea ecx, [edx + esi]
movzx edx, byte [edi + 9]
mov eax, ecx
mov dword [esp + 0x38], ecx
shr eax, 8
add edx, eax
mov dword [esp + 0x34], edx
mov eax, edx
movzx edx, byte [edi + 8]
shr eax, 8
lea ecx, [edx + eax]
movzx edx, byte [edi + 7]
mov dword [esp + 0x30], ecx
shr ecx, 8
lea esi, [edx + ecx]
movzx edx, byte [edi + 6]
mov eax, esi
mov dword [esp + 0x2c], esi
shr eax, 8
add edx, eax
mov dword [esp + 0x28], edx
shr edx, 8
mov eax, edx
movzx edx, byte [edi + 5]
lea esi, [edx + eax]
movzx edx, byte [edi + 4]
mov eax, esi
mov dword [esp + 0x24], esi
shr eax, 8
lea ecx, [edx + eax]
movzx eax, byte [edi + 3]
mov edx, ecx
mov dword [esp + 0x20], ecx
movzx ecx, byte [edi + 2]
shr edx, 8
add eax, edx
movzx edx, byte [edi + 1]
mov dword [esp + 0x1c], eax
shr eax, 8
add ecx, eax
movzx eax, byte [edi]
mov esi, ecx
movzx ecx, cl
shr esi, 8
add edx, esi
add al, dh
movzx edx, dl
mov esi, eax
movzx eax, byte [edi + 0xf]
add eax, 1
mov byte [esp + 0x1b], al
movzx eax, byte [esp + 0x1c]
shl eax, 8
or eax, ecx
mov ecx, esi
shl eax, 8
movzx esi, cl
or eax, edx
movzx edx, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x28]
shl eax, 8
shl edx, 8
or eax, esi
or edx, ecx
movzx ecx, byte [esp + 0x24]
movd xmm0, eax
add ebx, 0x10
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x20]
shl edx, 8
mov esi, edx
movzx edx, byte [esp + 0x48]
or esi, ecx
movzx ecx, byte [esp + 0x3c]
movd xmm2, esi
movzx esi, byte [esp + 0x38]
shl ecx, 8
punpckldq xmm0, xmm2
or ecx, esi
movzx esi, byte [esp + 0x34]
shl ecx, 8
or ecx, esi
movzx esi, byte [esp + 0x30]
shl ecx, 8
or ecx, esi
movzx esi, byte [esp + 0x1b]
movd xmm1, ecx
mov ecx, dword [ebp + 0x1c]
shl esi, 8
or esi, edx
movzx edx, byte [esp + 0x44]
shl esi, 8
or esi, edx
movzx edx, byte [esp + 0x40]
shl esi, 8
or esi, edx
movd xmm3, esi
mov esi, dword [esp + 0x4c]
punpckldq xmm1, xmm3
punpcklqdq xmm0, xmm1
add esi, 0x10
movups xmmword [edi], xmm0
mov eax, dword [ebx - 0x10]
xor eax, dword [ecx]
mov dword [esi - 0x10], eax
mov eax, dword [ebx - 0xc]
xor eax, dword [ecx + 4]
mov dword [esi - 0xc], eax
mov eax, dword [ebx - 8]
xor eax, dword [ecx + 8]
mov dword [esi - 8], eax
mov eax, dword [ebx - 4]
xor eax, dword [ecx + 0xc]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], esi
cmp ebx, eax
jne 0x609d90
mov esi, dword [esp + 0x10]
and dword [ebp + 0x10], 0xf
xor ebx, ebx
add dword [ebp + 0xc], esi
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x60a1ff
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebp + 0x24]
movzx eax, byte [edi + 0xf]
movzx edx, byte [edi + 0xe]
add eax, 1
shr eax, 8
add eax, edx
movzx edx, byte [edi + 0xd]
mov dword [esp + 0x4c], eax
shr eax, 8
lea ecx, [edx + eax]
movzx edx, byte [edi + 0xc]
mov dword [esp + 0x48], ecx
shr ecx, 8
lea esi, [edx + ecx]
movzx edx, byte [edi + 0xb]
mov dword [esp + 0x44], esi
shr esi, 8
add edx, esi
mov dword [esp + 0x40], edx
shr edx, 8
mov eax, edx
movzx edx, byte [edi + 0xa]
add eax, edx
movzx edx, byte [edi + 9]
mov dword [esp + 0x3c], eax
shr eax, 8
lea ecx, [edx + eax]
movzx edx, byte [edi + 8]
mov dword [esp + 0x38], ecx
shr ecx, 8
lea esi, [edx + ecx]
movzx edx, byte [edi + 7]
mov dword [esp + 0x34], esi
shr esi, 8
add edx, esi
mov dword [esp + 0x30], edx
shr edx, 8
mov eax, edx
movzx edx, byte [edi + 6]
add eax, edx
movzx edx, byte [edi + 5]
mov dword [esp + 0x2c], eax
shr eax, 8
add eax, edx
movzx edx, byte [edi + 4]
mov dword [esp + 0x28], eax
shr eax, 8
lea ecx, [edx + eax]
movzx edx, byte [edi + 3]
mov dword [esp + 0x24], ecx
shr ecx, 8
lea esi, [edx + ecx]
movzx edx, byte [edi + 2]
mov ecx, esi
shr esi, 8
lea esi, [edx + esi]
mov edx, esi
shr edx, 8
mov eax, edx
movzx edx, byte [edi + 1]
add edx, eax
movzx eax, byte [edi]
add al, dh
movzx edx, dl
mov byte [esp + 0x20], al
movzx eax, byte [edi + 0xf]
add eax, 1
mov byte [esp + 0x1c], al
movzx eax, cl
mov ecx, esi
movzx esi, cl
shl eax, 8
or eax, esi
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x20]
shl eax, 8
mov esi, eax
or esi, edx
movzx edx, byte [esp + 0x30]
movzx ecx, byte [esp + 0x2c]
movzx eax, byte [esp + 0x40]
movd xmm0, esi
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x28]
shl eax, 8
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x24]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x1c]
movd xmm2, edx
movzx edx, byte [esp + 0x3c]
shl ecx, 8
punpckldq xmm0, xmm2
or eax, edx
movzx edx, byte [esp + 0x38]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x34]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x4c]
movd xmm1, eax
mov eax, dword [ebp + 0x10]
or ecx, edx
movzx edx, byte [esp + 0x48]
shl ecx, 8
sub eax, 1
or ecx, edx
movzx edx, byte [esp + 0x44]
mov dword [esp + 0x4c], eax
shl ecx, 8
or ecx, edx
movd xmm4, ecx
punpckldq xmm1, xmm4
punpcklqdq xmm0, xmm1
movups xmmword [edi], xmm0
cmp eax, 2
jbe 0x60a38f
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x14]
lea eax, [ebx + 1]
add esi, ebx
lea ecx, [edi + eax]
mov edx, esi
sub edx, ecx
cmp edx, 2
jbe 0x60a20c
mov ecx, dword [ebp + 0x1c]
mov edx, esi
add ecx, eax
sub edx, ecx
cmp edx, 2
jbe 0x60a20c
mov edx, dword [ebp + 0x1c]
lea eax, [edi + ebx]
mov ecx, dword [ebp + 0x10]
movd xmm5, dword [eax]
add edx, ebx
shr ecx, 2
movd xmm0, dword [edx]
pxor xmm0, xmm5
movd dword [esi], xmm0
cmp ecx, 1
je 0x60a1a7
movd xmm0, dword [edx + 4]
movd xmm6, dword [eax + 4]
pxor xmm0, xmm6
movd dword [esi + 4], xmm0
cmp ecx, 3
jne 0x60a1a7
movd xmm0, dword [edx + 8]
movd xmm7, dword [eax + 8]
pxor xmm0, xmm7
movd dword [esi + 8], xmm0
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x4c]
and edx, 0xfffffffc
lea eax, [ebx + edx]
sub ecx, edx
test byte [ebp + 0x10], 3
je 0x60a1fc
mov esi, dword [ebp + 0x1c]
mov edi, dword [esp + 0x14]
movzx edx, byte [edi + eax]
xor dl, byte [esi + eax]
mov esi, dword [ebp + 0xc]
mov byte [esi + eax], dl
test ecx, ecx
je 0x60a1fc
mov esi, dword [ebp + 0x1c]
movzx edx, byte [edi + eax + 1]
xor dl, byte [esi + eax + 1]
mov esi, dword [ebp + 0xc]
mov byte [esi + eax + 1], dl
cmp ecx, 1
je 0x60a1fc
movzx edx, byte [edi + eax + 2]
mov edi, dword [ebp + 0x1c]
xor dl, byte [edi + eax + 2]
mov byte [esi + eax + 2], dl
add ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 0x1c]
movzx edx, byte [edi + ebx]
mov edi, dword [esp + 0x14]
xor dl, byte [edi + ebx]
mov edi, dword [ebp + 0xc]
mov byte [edi + ebx], dl
mov edi, dword [ebp + 0x10]
lea ecx, [edi - 2]
mov esi, dword [ebp + 0x1c]
mov edi, dword [esp + 0x14]
movzx edx, byte [edi + eax]
xor dl, byte [esi + eax]
mov esi, dword [ebp + 0xc]
mov byte [esi + eax], dl
test ecx, ecx
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 2]
xor al, byte [ecx + ebx + 2]
cmp dword [ebp + 0x10], 3
mov byte [esi + ebx + 2], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 3]
xor al, byte [ecx + ebx + 3]
cmp dword [ebp + 0x10], 4
mov byte [esi + ebx + 3], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 4]
xor al, byte [ecx + ebx + 4]
cmp dword [ebp + 0x10], 5
mov byte [esi + ebx + 4], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 5]
xor al, byte [ecx + ebx + 5]
cmp dword [ebp + 0x10], 6
mov byte [esi + ebx + 5], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 6]
xor al, byte [ecx + ebx + 6]
cmp dword [ebp + 0x10], 7
mov byte [esi + ebx + 6], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 7]
xor al, byte [ecx + ebx + 7]
cmp dword [ebp + 0x10], 8
mov byte [esi + ebx + 7], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 8]
xor al, byte [ecx + ebx + 8]
cmp dword [ebp + 0x10], 9
mov byte [esi + ebx + 8], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 9]
xor al, byte [ecx + ebx + 9]
cmp dword [ebp + 0x10], 0xa
mov byte [esi + ebx + 9], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 0xa]
xor al, byte [ecx + ebx + 0xa]
cmp dword [ebp + 0x10], 0xb
mov byte [esi + ebx + 0xa], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 0xb]
xor al, byte [ecx + ebx + 0xb]
cmp dword [ebp + 0x10], 0xc
mov byte [esi + ebx + 0xb], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 0xc]
xor al, byte [ecx + ebx + 0xc]
cmp dword [ebp + 0x10], 0xd
mov byte [esi + ebx + 0xc], al
je 0x60a1fc
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [edi + ebx + 0xd]
xor al, byte [ecx + ebx + 0xd]
cmp dword [ebp + 0x10], 0xe
mov byte [esi + ebx + 0xd], al
je 0x60a1fc
mov eax, dword [ebp + 0x1c]
movzx eax, byte [eax + ebx + 0xe]
xor al, byte [edi + ebx + 0xe]
mov byte [esi + ebx + 0xe], al
jmp 0x60a1fc
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
jmp 0x609f7a
mov edi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + ebx]
xor al, byte [edi + ebx]
mov edi, dword [ebp + 0xc]
mov byte [edi + ebx], al
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x60a1fc
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 1]
lea ecx, [edi - 2]
jmp 0x60a226