Function at 0x42d303
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 0x42d5ad
cmp dword [ebp + 0x18], 0
jne 0x42d32c
push 0x2c
mov ecx, str.out___NULL
jmp 0x42d5b4
cmp dword [ebp + 0x1c], 0
jne 0x42d33e
push 0x2d
mov ecx, str.outlen___NULL
jmp 0x42d5b4
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x42d351
push 0x2e
mov ecx, str.res___NULL
jmp 0x42d5b4
and dword [eax], 0
mov ecx, dword [ebp + 0x14]
call fcn.0042ee51
test eax, eax
jne 0x42d5a9
imul eax, ecx, 0x68
push ebx
push 0
pop edx
mov ebx, dword [eax + 0x46b2f8]
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 0x42d5a5
cmp esi, edx
jne 0x42d5a5
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 0x42d586
cmp dword [ebp - 4], 0
je 0x42d57e
test esi, esi
je 0x42d57e
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.0043dd70
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.0043dd70
mov ecx, dword [ebp + 0x14]
mov edx, edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042ee6e
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x42d562
test ebx, ebx
je 0x42d43e
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 0x42d433
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0042ee6e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d562
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x42d47e
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 0x42d470
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 0x42d494
push dword [ebp + 0xc]
jmp 0x42d498
push 0
mov edx, ecx
mov ecx, dword [ebp + 0x14]
call fcn.0042ed81
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d562
mov eax, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x42d4d6
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 0x42d4c1
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x42d4d8
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 0x42d4f6
push 7
pop edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
cmp ebx, dword [ebp - 8]
jae 0x42d521
mov esi, ebx
cmp byte [ecx + esi], 0
jne 0x42d51b
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x18], esi
mov edx, esi
mov ebx, esi
cmp eax, dword [ebp - 8]
jb 0x42d504
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
je 0x42d52c
cmp byte [eax + ecx], 1
je 0x42d52f
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 0x42d544
push 7
pop edi
jmp 0x42d562
test edi, edi
jne 0x42d562
push esi
add eax, ecx
mov dword [edx], esi
push eax
push dword [ebp + 0x18]
call fcn.0043dd70
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 0x42d5a8
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x42d595
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42d5a1
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42d5a7
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2b
mov ecx, str.msg___NULL
call fcn.0042bf31
int3