Function at 0x42d377
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 0x42d621
cmp dword [ebp + 0x18], 0
jne 0x42d3a0
push 0x2c
mov ecx, str.out___NULL
jmp 0x42d628
cmp dword [ebp + 0x1c], 0
jne 0x42d3b2
push 0x2d
mov ecx, str.outlen___NULL
jmp 0x42d628
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x42d3c5
push 0x2e
mov ecx, str.res___NULL
jmp 0x42d628
and dword [eax], 0
mov ecx, dword [ebp + 0x14]
call fcn.0042eec5
test eax, eax
jne 0x42d61d
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 0x42d619
cmp esi, edx
jne 0x42d619
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 0x42d5fa
cmp dword [ebp - 4], 0
je 0x42d5f2
test esi, esi
je 0x42d5f2
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.0043df10
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.0043df10
mov ecx, dword [ebp + 0x14]
mov edx, edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042eee2
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x42d5d6
test ebx, ebx
je 0x42d4b2
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 0x42d4a7
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0042eee2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d5d6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x42d4f2
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 0x42d4e4
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 0x42d508
push dword [ebp + 0xc]
jmp 0x42d50c
push 0
mov edx, ecx
mov ecx, dword [ebp + 0x14]
call fcn.0042edf5
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d5d6
mov eax, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x42d54a
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 0x42d535
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x42d54c
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 0x42d56a
push 7
pop edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
cmp ebx, dword [ebp - 8]
jae 0x42d595
mov esi, ebx
cmp byte [ecx + esi], 0
jne 0x42d58f
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x18], esi
mov edx, esi
mov ebx, esi
cmp eax, dword [ebp - 8]
jb 0x42d578
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
je 0x42d5a0
cmp byte [eax + ecx], 1
je 0x42d5a3
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 0x42d5b8
push 7
pop edi
jmp 0x42d5d6
test edi, edi
jne 0x42d5d6
push esi
add eax, ecx
mov dword [edx], esi
push eax
push dword [ebp + 0x18]
call fcn.0043df10
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 0x42d61c
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x42d609
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42d615
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42d61b
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2b
mov ecx, str.msg___NULL
call fcn.0042be94
int3