Function at 0x42ea80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 3]
mov edx, dword [eax + 3]
mov eax, 0xc6a
cmp cl, dl
jne 0x42f034
movsx eax, cl
sub eax, 9
cmp eax, 0x17
ja case.0x42eacb.16
jmp dword [eax*4 + 0x51b0f4]
mov eax, esi
add eax, 0x10
cmp eax, edi
jbe 0x42ebf3
mov ecx, dword [ebp - 0x18]
lea edx, [edi + ecx]
lea eax, [edx + 0x10]
cmp eax, esi
jbe 0x42ebf3
cmp edi, esi
jae 0x42f111
cmp edx, esi
jbe 0x42f111
mov dword [ebp - 0x4c], edx
mov edi, dword [ebp - 0xc]
mov eax, edx
shr eax, 1
add esi, ecx
lea eax, [eax + edi + 7]
mov dword [ebp - 0x54], eax
mov eax, esi
shr eax, 1
lea edi, [eax + edi + 7]
xor eax, eax
test byte [ebp - 0x4c], 1
sete al
sub dword [ebp - 0x54], eax
xor eax, eax
dec dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
test esi, 1
sete al
mov ecx, dword [ebp - 0x4c]
sub edi, eax
movzx eax, byte [edx]
dec esi
movzx edx, byte [edi]
not ecx
and ecx, 1
shl ecx, 2
sar eax, cl
mov ecx, esi
mov byte [ebp - 0x55], dl
not ecx
and eax, 0xf
and ecx, 1
shl ecx, 2
shl eax, cl
xor dl, al
mov eax, 0xf
shl eax, cl
and dl, al
xor byte [ebp - 0x55], dl
movzx ecx, byte [ebp - 0x55]
mov byte [edi], cl
dec dword [ebp - 0x50]
jne 0x42eb1b
lea esi, [esi]
add esp, 0x70
pop esi
pop edi
pop ebp
ret
mov edi, 0xc86
mov dword [esp + 4], edi
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_array.d
call fcn.00420a64
mov dword [ebp - 0x34], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], edx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
je 0x42ef83
mov eax, dword [ebp - 0x18]
lea edx, [edi + edi]
add eax, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov eax, dword [ebp - 0xc]
add esp, 0x70
pop esi
pop edi
pop ebp
jmp fcn.0042c214
mov dword [ebp - 0x4c], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], edx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
je 0x42ead2
mov eax, dword [ebp - 0x18]
lea edx, [edi*4]
shl eax, 2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
jmp 0x42ebc4
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
sete al
xor edx, edx
cmp edi, dword [ebp - 0x14]
setb dl
test eax, edx
je 0x42ee74
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x14]
jbe 0x42ee74
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + eax + 7]
mov eax, dword [ebp - 0x14]
add eax, esi
lea ecx, [edi + eax + 7]
lea esi, [esi]
lea edi, [edi]
dec edx
dec ecx
dec esi
movzx eax, byte [edx]
mov byte [ecx], al
jne 0x42ec50
jmp case.0x42eacb.32
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0xc], edx
sete al
xor edx, edx
cmp edi, dword [ebp - 0x14]
setb dl
test eax, edx
je 0x42ee42
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x14]
jbe 0x42ee42
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + eax*2 + 7]
mov eax, dword [ebp - 0x14]
add eax, esi
lea ecx, [edi + eax*2 + 7]
lea esi, [esi]
sub edx, 2
sub ecx, 2
dec esi
movzx eax, word [edx]
mov word [ecx], ax
jne 0x42eca0
jmp case.0x42eacb.32
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0xc], edx
sete al
xor edx, edx
cmp edi, dword [ebp - 0x14]
setb dl
test eax, edx
je 0x42ee12
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x14]
jbe 0x42ee12
mov edi, dword [ebp - 0xc]
lea ecx, [edi + eax*4 + 7]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
add eax, esi
lea edx, [edi + eax*4 + 7]
nop
sub ecx, 4
sub edx, 4
mov eax, dword [ecx]
dec esi
mov dword [edx], eax
jne 0x42ecf0
jmp case.0x42eacb.32
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0xc], ecx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
je 0x42eedb
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
mov edx, edi
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ecx
jmp 0x42ebcd
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0xc], edx
sete al
xor edx, edx
cmp edi, dword [ebp - 0x14]
setb dl
test eax, edx
je 0x42ede1
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x14]
jbe 0x42ede1
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + eax*4 + 7]
mov eax, dword [ebp - 0x14]
add eax, esi
lea ecx, [edi + eax*4 + 7]
nop
sub edx, 4
sub ecx, 4
mov eax, dword [edx]
dec esi
mov dword [ecx], eax
jne 0x42ed70
jmp case.0x42eacb.32
cmp dword [ebp - 0x10], 0x4fa001
mov esi, dword [ebp - 0x18]
je 0x42f214
test dl, 1
je 0x42f209
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
sete al
xor edx, edx
cmp edi, dword [ebp - 0x14]
setb dl
test eax, edx
je 0x42edbf
mov eax, dword [ebp - 0x18]
lea edx, [edi + eax]
cmp edx, dword [ebp - 0x14]
ja 0x42ee9f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], edx
mov edx, edi
mov dword [ebp + 8], ecx
add esp, 0x70
pop esi
pop edi
pop ebp
jmp fcn.0042cdc0
mov eax, dword [ebp - 0xc]
lea edx, [eax + edi*4 + 7]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edi*4 + 7]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
dec esi
jne 0x42ee00
jmp case.0x42eacb.32
mov eax, dword [ebp - 0xc]
lea edx, [eax + edi*4 + 7]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edi*4 + 7]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
dec esi
jne 0x42ee30
jmp case.0x42eacb.32
mov eax, dword [ebp - 0xc]
lea edx, [eax + edi*2 + 7]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edi*2 + 7]
lea esi, [esi]
lea edi, [edi]
movzx eax, word [edx]
add edx, 2
mov word [ecx], ax
add ecx, 2
dec esi
jne 0x42ee60
jmp case.0x42eacb.32
mov eax, dword [ebp - 0xc]
lea edx, [eax + edi + 7]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [edi + eax + 7]
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
dec esi
jne 0x42ee90
jmp case.0x42eacb.32
cmp cl, 0x20
je 0x42f219
movsx eax, cl
sub eax, 0x11
sar eax, 1
jne 0x42f03d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + edx + 7]
mov ecx, dword [ebp - 0x18]
add eax, ecx
lea ecx, [edi + eax + 7]
dec edx
dec ecx
dec esi
movzx eax, byte [edx]
mov byte [ecx], al
jne 0x42eecc
jmp case.0x42eacb.32
mov eax, esi
add eax, 0x40
cmp eax, edi
jbe 0x42ed1a
lea edx, [edi + edx]
lea eax, [edx + 0x40]
cmp eax, esi
jbe 0x42ed1a
cmp edi, esi
jae 0x42f099
cmp edx, esi
jbe 0x42f099
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp - 0x18]
mov eax, edx
shr eax, 3
add esi, edi
mov edi, dword [ebp - 0xc]
lea eax, [eax + edi + 7]
mov dword [ebp - 0x24], eax
mov eax, esi
shr eax, 3
lea edi, [eax + edi + 7]
xor eax, eax
test byte [ebp - 0x1c], 7
sete al
sub dword [ebp - 0x24], eax
xor eax, eax
dec dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
test esi, 7
sete al
mov ecx, dword [ebp - 0x1c]
sub edi, eax
movzx eax, byte [edx]
dec esi
movzx edx, byte [edi]
not ecx
and ecx, 7
sar eax, cl
mov ecx, esi
and eax, 1
mov byte [ebp - 0x25], dl
not ecx
and ecx, 7
shl eax, cl
xor dl, al
mov eax, 1
shl eax, cl
and dl, al
xor byte [ebp - 0x25], dl
movzx ecx, byte [ebp - 0x25]
mov byte [edi], cl
dec dword [ebp - 0x20]
jne 0x42ef26
jmp case.0x42eacb.32
mov eax, esi
add eax, 0x20
cmp eax, edi
jbe 0x42ebb4
mov ecx, dword [ebp - 0x18]
lea edx, [edi + ecx]
lea eax, [edx + 0x20]
cmp eax, esi
jbe 0x42ebb4
cmp edi, esi
jae 0x42f18d
cmp edx, esi
jbe 0x42f18d
mov dword [ebp - 0x34], edx
mov edi, dword [ebp - 0xc]
mov eax, edx
shr eax, 2
add esi, ecx
lea eax, [eax + edi + 7]
mov dword [ebp - 0x3c], eax
mov eax, esi
shr eax, 2
lea edi, [eax + edi + 7]
xor eax, eax
test byte [ebp - 0x34], 3
sete al
sub dword [ebp - 0x3c], eax
xor eax, eax
dec dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
test esi, 3
sete al
mov ecx, dword [ebp - 0x34]
sub edi, eax
movzx eax, byte [edx]
dec esi
movzx edx, byte [edi]
not ecx
and ecx, 3
add ecx, ecx
sar eax, cl
mov ecx, esi
mov byte [ebp - 0x3d], dl
not ecx
and eax, 3
and ecx, 3
add ecx, ecx
shl eax, cl
xor dl, al
mov eax, 3
shl eax, cl
and dl, al
xor byte [ebp - 0x3d], dl
movzx ecx, byte [ebp - 0x3d]
mov byte [edi], cl
dec dword [ebp - 0x38]
jne 0x42efce
jmp case.0x42eacb.32
mov eax, 0xbd2
mov dword [esp + 4], eax
jmp 0x42eb90
cmp eax, 1
je 0x42f06f
cmp eax, 2
jne 0x42f02f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
lea edx, [eax + edx*4 + 7]
mov eax, dword [ebp - 0x14]
add eax, ecx
lea ecx, [edi + eax*4 + 7]
sub edx, 4
sub ecx, 4
mov eax, dword [edx]
dec esi
mov dword [ecx], eax
jne 0x42f05d
jmp case.0x42eacb.32
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea edx, [eax + edx*2 + 7]
mov eax, dword [ebp - 0x14]
add eax, edi
mov edi, dword [ebp - 0x10]
lea ecx, [edi + eax*2 + 7]
sub edx, 2
sub ecx, 2
dec esi
movzx eax, word [edx]
mov word [ecx], ax
jne 0x42f085
jmp case.0x42eacb.32
shr dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
shr edi, 3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [edi + eax + 7]
mov dword [ebp - 0x2c], edi
lea edi, [edx + ecx + 7]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edx]
not ecx
and ecx, 7
movzx edx, byte [edi]
sar eax, cl
mov ecx, esi
not ecx
and eax, 1
and ecx, 7
mov byte [ebp - 0x2d], dl
shl eax, cl
xor dl, al
mov eax, 1
shl eax, cl
and dl, al
xor byte [ebp - 0x2d], dl
xor eax, eax
movzx ecx, byte [ebp - 0x2d]
mov byte [edi], cl
inc dword [ebp - 0x1c]
test byte [ebp - 0x1c], 7
sete al
inc esi
add dword [ebp - 0x2c], eax
xor eax, eax
test esi, 7
sete al
add edi, eax
dec dword [ebp - 0x20]
jne 0x42f0b4
jmp case.0x42eacb.32
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
shr edi, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [edi + eax + 7]
mov dword [ebp - 0x5c], edi
lea edi, [edx + ecx + 7]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
movzx eax, byte [edx]
not ecx
and ecx, 1
movzx edx, byte [edi]
shl ecx, 2
sar eax, cl
mov ecx, esi
and eax, 0xf
not ecx
mov byte [ebp - 0x5d], dl
and ecx, 1
shl ecx, 2
shl eax, cl
xor dl, al
mov eax, 0xf
shl eax, cl
and dl, al
xor eax, eax
xor byte [ebp - 0x5d], dl
movzx ecx, byte [ebp - 0x5d]
mov byte [edi], cl
inc dword [ebp - 0x4c]
test byte [ebp - 0x4c], 1
sete al
inc esi
add dword [ebp - 0x5c], eax
xor eax, eax
test esi, 1
sete al
add edi, eax
dec dword [ebp - 0x50]
jne 0x42f12a
jmp case.0x42eacb.32
shr dword [ebp - 0x14], 2
mov eax, dword [ebp - 0xc]
shr edi, 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [edi + eax + 7]
mov dword [ebp - 0x44], edi
lea edi, [edx + ecx + 7]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
movzx eax, byte [edx]
not ecx
and ecx, 3
movzx edx, byte [edi]
add ecx, ecx
sar eax, cl
mov ecx, esi
and eax, 3
not ecx
mov byte [ebp - 0x45], dl
and ecx, 3
add ecx, ecx
shl eax, cl
xor dl, al
mov eax, 3
shl eax, cl
and dl, al
xor eax, eax
xor byte [ebp - 0x45], dl
movzx ecx, byte [ebp - 0x45]
mov byte [edi], cl
inc dword [ebp - 0x34]
test byte [ebp - 0x34], 3
sete al
inc esi
add dword [ebp - 0x44], eax
xor eax, eax
test esi, 3
sete al
add edi, eax
dec dword [ebp - 0x38]
jne 0x42f1a8
jmp case.0x42eacb.32
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call fcn.0043aa6c
call fcn.0042a9c4
call fcn.0042a3f0
nop