Function at 0x42d5ba
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 0x42d80a
cmp dword [ebp + 0x20], 0
jne 0x42d5e6
push 0x2d
mov ecx, str.out___NULL
jmp 0x42d811
cmp dword [ebp + 0x24], 0
jne 0x42d5f8
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x42d811
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.0042ee51
test eax, eax
jne 0x42d806
mov ecx, dword [ebp + 0x18]
call fcn.0042efbb
test eax, eax
jne 0x42d806
imul eax, edx, 0x68
push ebx
push 0
pop ebx
mov ecx, dword [eax + 0x46b2f8]
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 0x42d802
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
ja 0x42d802
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 0x42d7e3
cmp dword [ebp - 8], 0
je 0x42d7db
test esi, esi
je 0x42d7db
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 0x42d6a6
push dword [ebp + 0xc]
jmp 0x42d6aa
push 0
mov edx, edi
call fcn.0042ed81
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d7c1
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.0043dd36
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.0043dd70
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
mov edi, dword [ebp - 4]
push edi
push esi
call dword [eax + 0x46ae04]
add esp, 0x24
cmp eax, edi
je 0x42d712
push 9
pop edi
jmp 0x42d7c1
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.0042ee6e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d7c1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42d753
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 0x42d745
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.0042ee6e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d7c1
mov edi, dword [ebp - 4]
test edi, edi
je 0x42d78a
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 0x42d77c
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
jae 0x42d796
push 6
pop edi
jmp 0x42d7bf
mov eax, dword [ebp + 0x20]
push edi
push esi
mov byte [eax], 0
inc eax
push eax
call fcn.0043dd70
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push dword [ebp - 0xc]
inc eax
add eax, edi
push eax
call fcn.0043dd70
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 0x42d805
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d7f2
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42d7fe
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42d804
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.0042bf31
int3