Function at 0x42e5cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, ecx
mov esi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
push edi
test eax, eax
je 0x42e81d
cmp dword [ebp + 0x20], 0
jne 0x42e5f9
push 0x2d
mov ecx, str.out___NULL
jmp 0x42e824
cmp dword [ebp + 0x24], 0
jne 0x42e60b
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x42e824
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.0042fe64
test eax, eax
jne 0x42e819
mov ecx, dword [ebp + 0x18]
call fcn.0042ffce
test eax, eax
jne 0x42e819
imul eax, edx, 0x68
push ebx
push 0
pop ebx
mov ecx, dword [eax + 0x46c338]
mov eax, dword [ebp + 0x10]
test al, 7
mov dword [ebp - 4], ecx
setne bl
shr eax, 3
add ebx, eax
lea edx, [ecx + ecx]
lea eax, [ebx - 2]
cmp edx, eax
jae 0x42e815
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
ja 0x42e815
mov esi, dword [sym.imp.lib.stdc.dll_malloc]
push ebx
call esi
mov edi, eax
push ebx
mov dword [ebp - 0xc], edi
call esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
add esp, 0xc
mov esi, eax
test edi, edi
je 0x42e7f6
cmp dword [ebp - 8], 0
je 0x42e7ee
test esi, esi
je 0x42e7ee
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
push eax
push edi
test edx, edx
je 0x42e6b9
push dword [ebp + 0xc]
jmp 0x42e6bd
push 0
mov edx, edi
call fcn.0042fd94
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42e7d4
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
sub eax, 2
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push edi
mov edi, dword [ebp - 0xc]
add eax, edi
push eax
call fcn.0043ee16
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov byte [eax + edi], 1
inc edi
add eax, edi
push eax
call fcn.0043ee50
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
mov edi, dword [ebp - 4]
push edi
push esi
call dword [eax + 0x46be44]
add esp, 0x24
cmp eax, edi
je 0x42e725
push 9
pop edi
jmp 0x42e7d4
mov ecx, dword [ebp + 0x1c]
mov eax, ebx
sub eax, edi
mov edx, esi
dec eax
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push edi
call fcn.0042fe81
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42e7d4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42e766
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edi, edx
mov al, byte [edi + edx]
xor byte [edx], al
inc edx
sub ecx, 1
jne 0x42e758
mov ecx, dword [ebp - 0x10]
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0042fe81
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42e7d4
mov edi, dword [ebp - 4]
test edi, edi
je 0x42e79d
mov edx, dword [ebp - 8]
mov ecx, esi
sub edx, esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x42e78f
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
jae 0x42e7a9
push 6
pop edi
jmp 0x42e7d2
mov eax, dword [ebp + 0x20]
push edi
push esi
mov byte [eax], 0
inc eax
push eax
call fcn.0043ee50
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push dword [ebp - 0xc]
inc eax
add eax, edi
push eax
call fcn.0043ee50
mov eax, dword [ebp + 0x24]
add esp, 0x18
xor edi, edi
mov dword [eax], ebx
push esi
mov esi, dword [sym.imp.lib.stdc.dll_free]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
add esp, 0xc
mov eax, edi
jmp 0x42e818
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x42e805
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42e811
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42e817
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.0042ce40
int3