Function at 0x435ac4
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 0x435d6e
cmp dword [ebp + 0x18], 0
jne 0x435aed
push 0x2c
mov ecx, str.out___NULL
jmp 0x435d75
cmp dword [ebp + 0x1c], 0
jne 0x435aff
push 0x2d
mov ecx, str.outlen___NULL
jmp 0x435d75
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x435b12
push 0x2e
mov ecx, str.res___NULL
jmp 0x435d75
and dword [eax], 0
mov ecx, dword [ebp + 0x14]
call fcn.00437612
test eax, eax
jne 0x435d6a
imul eax, ecx, 0x68
push ebx
push 0
pop edx
mov ebx, dword [eax + 0x473478]
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 0x435d66
cmp esi, edx
jne 0x435d66
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 0x435d47
cmp dword [ebp - 4], 0
je 0x435d3f
test esi, esi
je 0x435d3f
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.00446260
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.00446260
mov ecx, dword [ebp + 0x14]
mov edx, edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043762f
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x435d23
test ebx, ebx
je 0x435bff
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 0x435bf4
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0043762f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x435d23
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x435c3f
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 0x435c31
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 0x435c55
push dword [ebp + 0xc]
jmp 0x435c59
push 0
mov edx, ecx
mov ecx, dword [ebp + 0x14]
call fcn.00437542
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x435d23
mov eax, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x435c97
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 0x435c82
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x435c99
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 0x435cb7
push 7
pop edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
cmp ebx, dword [ebp - 8]
jae 0x435ce2
mov esi, ebx
cmp byte [ecx + esi], 0
jne 0x435cdc
lea esi, [ebx + 1]
mov eax, esi
mov dword [ebp - 0x18], esi
mov edx, esi
mov ebx, esi
cmp eax, dword [ebp - 8]
jb 0x435cc5
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
je 0x435ced
cmp byte [eax + ecx], 1
je 0x435cf0
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 0x435d05
push 7
pop edi
jmp 0x435d23
test edi, edi
jne 0x435d23
push esi
add eax, ecx
mov dword [edx], esi
push eax
push dword [ebp + 0x18]
call fcn.00446260
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 0x435d69
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x435d56
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x435d62
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x435d68
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2b
mov ecx, str.msg___NULL
call fcn.0042de7d
int3