Function at 0x42e316
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, ecx
mov dword [ebp - 0x18], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x42e5c0
cmp dword [ebp + 0x18], 0
jne 0x42e33f
push 0x2c
mov ecx, str.out___NULL
jmp 0x42e5c7
cmp dword [ebp + 0x1c], 0
jne 0x42e351
push 0x2d
mov ecx, str.outlen___NULL
jmp 0x42e5c7
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x42e364
push 0x2e
mov ecx, str.res___NULL
jmp 0x42e5c7
and dword [eax], 0
mov ecx, dword [ebp + 0x14]
call fcn.0042fe64
test eax, eax
jne 0x42e5bc
imul eax, ecx, 0x68
push ebx
push 0
pop edx
mov ebx, dword [eax + 0x46c338]
mov eax, dword [ebp + 0x10]
test al, 7
mov dword [ebp - 0x20], ebx
setne dl
shr eax, 3
add edx, eax
lea eax, [ebx + ebx]
mov dword [ebp - 0x14], edx
lea ecx, [edx - 2]
cmp eax, ecx
jae 0x42e5b8
cmp esi, edx
jne 0x42e5b8
mov esi, dword [sym.imp.lib.stdc.dll_malloc]
push edx
call esi
push dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x10], edi
call esi
push ebx
mov dword [ebp - 4], eax
call esi
add esp, 0xc
mov esi, eax
mov dword [ebp - 0xc], esi
test edi, edi
je 0x42e599
cmp dword [ebp - 4], 0
je 0x42e591
test esi, esi
je 0x42e591
mov eax, dword [ebp - 0x18]
push ebx
movzx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, 7
inc eax
push eax
push esi
mov dword [ebp - 0x1c], ecx
call fcn.0043ee50
mov esi, dword [ebp - 0x14]
mov eax, esi
sub eax, ebx
dec eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
add eax, ebx
push eax
push edi
call fcn.0043ee50
mov ecx, dword [ebp + 0x14]
mov edx, edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042fe81
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x42e575
test ebx, ebx
je 0x42e451
mov edx, dword [ebp - 4]
mov edi, ebx
mov ecx, dword [ebp - 0xc]
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x42e446
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0042fe81
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42e575
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x42e491
mov edi, dword [ebp - 4]
mov edx, ecx
sub edi, ecx
mov esi, eax
mov al, byte [edi + edx]
xor byte [edx], al
inc edx
sub esi, 1
jne 0x42e483
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push dword [ebp - 0xc]
test edx, edx
je 0x42e4a7
push dword [ebp + 0xc]
jmp 0x42e4ab
push 0
mov edx, ecx
mov ecx, dword [ebp + 0x14]
call fcn.0042fd94
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42e575
mov eax, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x42e4e9
sub ecx, eax
xor edx, edx
mov esi, ecx
mov ecx, ebx
mov al, byte [esi + edi]
xor al, byte [edi]
or dl, al
inc edi
sub ecx, 1
jne 0x42e4d4
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x42e4eb
xor edx, edx
mov edi, dword [ebp - 0x1c]
mov al, dl
shr al, 4
or dl, al
mov al, dl
shr al, 2
or dl, al
mov al, dl
shr al, 1
or al, dl
test al, 1
je 0x42e509
push 7
pop edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
cmp ebx, dword [ebp - 8]
jae 0x42e534
mov esi, ebx
cmp byte [ecx + esi], 0
jne 0x42e52e
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x18], esi
mov edx, esi
mov ebx, esi
cmp eax, dword [ebp - 8]
jb 0x42e517
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
je 0x42e53f
cmp byte [eax + ecx], 1
je 0x42e542
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x1c]
inc eax
sub esi, eax
sub esi, ebx
dec esi
cmp esi, dword [edx]
jbe 0x42e557
push 7
pop edi
jmp 0x42e575
test edi, edi
jne 0x42e575
push esi
add eax, ecx
mov dword [edx], esi
push eax
push dword [ebp + 0x18]
call fcn.0043ee50
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [eax], 1
push dword [ebp - 0xc]
mov esi, dword [sym.imp.lib.stdc.dll_free]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
call esi
add esp, 0xc
mov eax, edi
jmp 0x42e5bb
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x42e5a8
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42e5b4
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42e5ba
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2b
mov ecx, str.msg___NULL
call fcn.0042ce40
int3