Function at 0x435d7b
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 0x435fcb
cmp dword [ebp + 0x20], 0
jne 0x435da7
push 0x2d
mov ecx, str.out___NULL
jmp 0x435fd2
cmp dword [ebp + 0x24], 0
jne 0x435db9
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x435fd2
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.00437612
test eax, eax
jne 0x435fc7
mov ecx, dword [ebp + 0x18]
call fcn.0043777c
test eax, eax
jne 0x435fc7
imul eax, edx, 0x68
push ebx
push 0
pop ebx
mov ecx, dword [eax + 0x473478]
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 0x435fc3
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
ja 0x435fc3
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 0x435fa4
cmp dword [ebp - 8], 0
je 0x435f9c
test esi, esi
je 0x435f9c
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 0x435e67
push dword [ebp + 0xc]
jmp 0x435e6b
push 0
mov edx, edi
call fcn.00437542
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x435f82
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.00446226
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.00446260
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
mov edi, dword [ebp - 4]
push edi
push esi
call dword [eax + 0x472f84]
add esp, 0x24
cmp eax, edi
je 0x435ed3
push 9
pop edi
jmp 0x435f82
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.0043762f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x435f82
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x435f14
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 0x435f06
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.0043762f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x435f82
mov edi, dword [ebp - 4]
test edi, edi
je 0x435f4b
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 0x435f3d
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
jae 0x435f57
push 6
pop edi
jmp 0x435f80
mov eax, dword [ebp + 0x20]
push edi
push esi
mov byte [eax], 0
inc eax
push eax
call fcn.00446260
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push dword [ebp - 0xc]
inc eax
add eax, edi
push eax
call fcn.00446260
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 0x435fc6
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x435fb3
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x435fbf
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x435fc5
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.0042de7d
int3