Function at 0x42436f
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 0x424619
cmp dword [ebp + 0x18], 0
jne 0x424398
push 0x2c
mov ecx, str.out___NULL
jmp 0x424620
cmp dword [ebp + 0x1c], 0
jne 0x4243aa
push 0x2d
mov ecx, str.outlen___NULL
jmp 0x424620
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x4243bd
push 0x2e
mov ecx, str.res___NULL
jmp 0x424620
and dword [eax], 0
mov ecx, dword [ebp + 0x14]
call fcn.00425ebd
test eax, eax
jne 0x424615
imul eax, ecx, 0x68
push ebx
push 0
pop edx
mov ebx, dword [eax + 0x43dfd8]
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 0x424611
cmp esi, edx
jne 0x424611
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 0x4245f2
cmp dword [ebp - 4], 0
je 0x4245ea
test esi, esi
je 0x4245ea
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.0042ff90
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.0042ff90
mov ecx, dword [ebp + 0x14]
mov edx, edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00425eda
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x4245ce
test ebx, ebx
je 0x4244aa
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 0x42449f
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00425eda
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4245ce
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4244ea
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 0x4244dc
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 0x424500
push dword [ebp + 0xc]
jmp 0x424504
push 0
mov edx, ecx
mov ecx, dword [ebp + 0x14]
call fcn.00425ded
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4245ce
mov eax, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x424542
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 0x42452d
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x424544
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 0x424562
push 7
pop edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
cmp ebx, dword [ebp - 8]
jae 0x42458d
mov esi, ebx
cmp byte [ecx + esi], 0
jne 0x424587
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x18], esi
mov edx, esi
mov ebx, esi
cmp eax, dword [ebp - 8]
jb 0x424570
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
je 0x424598
cmp byte [eax + ecx], 1
je 0x42459b
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 0x4245b0
push 7
pop edi
jmp 0x4245ce
test edi, edi
jne 0x4245ce
push esi
add eax, ecx
mov dword [edx], esi
push eax
push dword [ebp + 0x18]
call fcn.0042ff90
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 0x424614
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x424601
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42460d
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x424613
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2b
mov ecx, str.msg___NULL
call fcn.00422e3e
int3